diff --git a/apps/builder/__tests__/ai-agent-action-schema.test.ts b/apps/builder/__tests__/ai-agent-action-schema.test.ts
index e8e65865d1..3aa86692cc 100644
--- a/apps/builder/__tests__/ai-agent-action-schema.test.ts
+++ b/apps/builder/__tests__/ai-agent-action-schema.test.ts
@@ -5,7 +5,7 @@ import {
} from "@/features/ai-agents/schemas/action"
describe("AI agent action schemas", () => {
- test("defaults rich response on create", () => {
+ test("defaults optional toggles on create", () => {
const result = createAIAgentRequest.safeParse({
name: "Support",
prompt: "Answer customer questions.",
@@ -18,10 +18,13 @@ describe("AI agent action schemas", () => {
})
expect(result.success).toBe(true)
- expect(result.data).toMatchObject({ isRichResponse: false })
+ expect(result.data).toMatchObject({
+ disableSummary: false,
+ isRichResponse: false,
+ })
})
- test("does not default rich response on partial update", () => {
+ test("does not default optional toggles on partial update", () => {
const result = updateAIAgentRequest.safeParse({ isDefault: true })
expect(result.success).toBe(true)
diff --git a/apps/builder/messages/ar.json b/apps/builder/messages/ar.json
index ac4ae8626f..3f81c335cf 100644
--- a/apps/builder/messages/ar.json
+++ b/apps/builder/messages/ar.json
@@ -1166,6 +1166,10 @@
"description": "إرجاع JSON منظم يحتوي على رسائل وإجراءات بدلًا من بث نص عادي.",
"label": "رد منسّق"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "تُعيّن اللغة الافتراضية لجهات الاتصال عندما تكون لغتها غير معروفة.",
"label": "اللغة",
diff --git a/apps/builder/messages/da.json b/apps/builder/messages/da.json
index fff7d5aa36..362e1762e0 100644
--- a/apps/builder/messages/da.json
+++ b/apps/builder/messages/da.json
@@ -1092,6 +1092,10 @@
"description": "Return structured JSON med beskeder og actions instead af plain tekst streaming.",
"label": "Rich Svar"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Kontakter er tildelt den standard sprog når den kontakt sprog er unknown.",
"label": "Sprog",
diff --git a/apps/builder/messages/de.json b/apps/builder/messages/de.json
index 1b27c7d1b0..388edc1a02 100644
--- a/apps/builder/messages/de.json
+++ b/apps/builder/messages/de.json
@@ -1092,6 +1092,10 @@
"description": "Strukturiertes JSON mit Nachrichten und Aktionen anstelle eines einfachen Textstreams zurückgeben.",
"label": "Strukturierte Antwort"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Kontakten wird die Standardsprache zugewiesen, wenn ihre Sprache unbekannt ist.",
"label": "Sprache",
diff --git a/apps/builder/messages/en.json b/apps/builder/messages/en.json
index c7687bbc90..cd72c09729 100644
--- a/apps/builder/messages/en.json
+++ b/apps/builder/messages/en.json
@@ -1175,6 +1175,10 @@
"description": "Return structured JSON with messages and actions instead of plain text streaming.",
"label": "Rich Response"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Contacts are assigned the default language when the contact language is unknown.",
"label": "Language",
diff --git a/apps/builder/messages/es.json b/apps/builder/messages/es.json
index 499cf6947f..2467527206 100644
--- a/apps/builder/messages/es.json
+++ b/apps/builder/messages/es.json
@@ -1166,6 +1166,10 @@
"description": "Devuelve JSON estructurado con mensajes y acciones en lugar de transmitir texto sin formato.",
"label": "Respuesta enriquecida"
},
+ "disableSummary": {
+ "description": "Usa solo los mensajes recientes de la conversación, sin el resumen acumulado. Las conversaciones largas pueden perder el contexto anterior a los últimos mensajes.",
+ "label": "Deshabilitar resumen de conversación"
+ },
"language": {
"description": "A los contactos se les asigna el idioma predeterminado cuando se desconoce su idioma.",
"label": "Idioma",
diff --git a/apps/builder/messages/fi.json b/apps/builder/messages/fi.json
index 78b4b3c97d..2b4a77020e 100644
--- a/apps/builder/messages/fi.json
+++ b/apps/builder/messages/fi.json
@@ -1092,6 +1092,10 @@
"description": "Palauta jäsennelty JSON, joka sisältää viestit ja toiminnot, pelkän tekstin suoratoiston sijaan.",
"label": "Monipuolinen vastaus"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Yhteystiedoille määritetään oletuskieli, kun yhteystiedon kieltä ei tunneta.",
"label": "Kieli",
diff --git a/apps/builder/messages/fr.json b/apps/builder/messages/fr.json
index 1eee9f300b..563d6a9ade 100644
--- a/apps/builder/messages/fr.json
+++ b/apps/builder/messages/fr.json
@@ -1092,6 +1092,10 @@
"description": "Renvoyer un JSON structuré avec des messages et des actions au lieu d’un flux de texte brut.",
"label": "Réponse enrichie"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "La langue par défaut est attribuée aux contacts dont la langue est inconnue.",
"label": "Langue",
diff --git a/apps/builder/messages/he.json b/apps/builder/messages/he.json
index 019d85a73a..9a79815577 100644
--- a/apps/builder/messages/he.json
+++ b/apps/builder/messages/he.json
@@ -3667,6 +3667,10 @@
"description": "החזרת JSON מובנה עם הודעות ופעולות במקום הזרמת טקסט רגיל.",
"label": "תגובה עשירה"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "לאנשי קשר מוקצית שפת ברירת המחדל כאשר שפת איש הקשר אינה ידועה.",
"label": "שפה",
diff --git a/apps/builder/messages/id.json b/apps/builder/messages/id.json
index 3e06e27953..1a93df8675 100644
--- a/apps/builder/messages/id.json
+++ b/apps/builder/messages/id.json
@@ -1092,6 +1092,10 @@
"description": "Return structured JSON dengan pesans dan actions instead dari plain teks streaming.",
"label": "Respons Kaya"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Kontak diberi bahasa default saat bahasa kontak tidak diketahui.",
"label": "Bahasa",
diff --git a/apps/builder/messages/it.json b/apps/builder/messages/it.json
index 1f6b1ff851..45e35f3270 100644
--- a/apps/builder/messages/it.json
+++ b/apps/builder/messages/it.json
@@ -472,6 +472,10 @@
"description": "Restituisce JSON strutturato con messaggi e azioni invece di testo semplice in streaming.",
"label": "Risposta avanzata"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Ai contatti viene assegnata la lingua predefinita quando la loro lingua è sconosciuta.",
"label": "Lingua",
diff --git a/apps/builder/messages/ja.json b/apps/builder/messages/ja.json
index e5f86e7651..bf884e4bac 100644
--- a/apps/builder/messages/ja.json
+++ b/apps/builder/messages/ja.json
@@ -1092,6 +1092,10 @@
"description": "プレーンテキストのストリーミングではなく、メッセージとアクションを含む構造化JSONを返します。",
"label": "リッチレスポンス"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "連絡先の言語が不明な場合、デフォルト言語が連絡先に割り当てられます。",
"label": "言語",
diff --git a/apps/builder/messages/nl.json b/apps/builder/messages/nl.json
index a1f5e3335f..821078e037 100644
--- a/apps/builder/messages/nl.json
+++ b/apps/builder/messages/nl.json
@@ -906,6 +906,10 @@
"description": "Retourneer gestructureerde JSON met berichten en acties in plaats van streaming in platte tekst.",
"label": "Verrijkt antwoord"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Contacten krijgen de standaardtaal toegewezen wanneer hun taal onbekend is.",
"label": "Taal",
diff --git a/apps/builder/messages/pt-BR.json b/apps/builder/messages/pt-BR.json
index b6921a098c..89be9854d9 100644
--- a/apps/builder/messages/pt-BR.json
+++ b/apps/builder/messages/pt-BR.json
@@ -1092,6 +1092,10 @@
"description": "Retorne JSON estruturado com mensagens e ações em vez de streaming de texto simples.",
"label": "Resposta avançada"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Os contatos recebem o idioma padrão quando o idioma do contato é desconhecido.",
"label": "Idioma",
diff --git a/apps/builder/messages/pt-PT.json b/apps/builder/messages/pt-PT.json
index 283a7ae104..79746e67f9 100644
--- a/apps/builder/messages/pt-PT.json
+++ b/apps/builder/messages/pt-PT.json
@@ -1092,6 +1092,10 @@
"description": "Devolver JSON estruturado com mensagens e ações em vez de transmissão de texto simples.",
"label": "Resposta avançada"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "É atribuído o idioma predefinido aos contactos quando o respetivo idioma é desconhecido.",
"label": "Idioma",
diff --git a/apps/builder/messages/ro.json b/apps/builder/messages/ro.json
index 44c3a217ed..d9f22cc40c 100644
--- a/apps/builder/messages/ro.json
+++ b/apps/builder/messages/ro.json
@@ -1866,6 +1866,10 @@
"description": "Returnează JSON structurat cu mesaje și acțiuni în locul unui flux de text simplu.",
"label": "Răspuns complex"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Contactelor li se atribuie limba implicită atunci când limba contactului este necunoscută.",
"label": "Limbă",
diff --git a/apps/builder/messages/sv.json b/apps/builder/messages/sv.json
index 6d5b47a67d..37def7d82c 100644
--- a/apps/builder/messages/sv.json
+++ b/apps/builder/messages/sv.json
@@ -1872,6 +1872,10 @@
"description": "Returnera strukturerad JSON med meddelanden och åtgärder i stället för direktuppspelad oformaterad text.",
"label": "Strukturerat svar"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"jsonPath": {
"placeholder": "Ange JSON-sökväg",
"targetThisRow": "Fyll den här raden från JSON"
diff --git a/apps/builder/messages/tr.json b/apps/builder/messages/tr.json
index d27d9c2fb1..050aa9cb00 100644
--- a/apps/builder/messages/tr.json
+++ b/apps/builder/messages/tr.json
@@ -1166,6 +1166,10 @@
"description": "Düz metin akışı yerine mesajlar ve eylemler içeren yapılandırılmış JSON döndürün.",
"label": "Zengin Yanıt"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "Kişinin dili bilinmediğinde kişilere varsayılan dil atanır.",
"label": "Dil",
diff --git a/apps/builder/messages/vi.json b/apps/builder/messages/vi.json
index ea2bd72efe..cfc78d1175 100644
--- a/apps/builder/messages/vi.json
+++ b/apps/builder/messages/vi.json
@@ -1167,6 +1167,10 @@
"description": "Trả về JSON có cấu trúc gồm tin nhắn và hành động thay vì stream văn bản thuần.",
"label": "Rich Response"
},
+ "disableSummary": {
+ "description": "Chỉ dùng các tin nhắn gần đây trong cuộc trò chuyện, không dùng bản tóm tắt tích lũy. Cuộc trò chuyện dài có thể mất ngữ cảnh cũ hơn các tin nhắn mới nhất.",
+ "label": "Tắt tóm tắt cuộc trò chuyện"
+ },
"language": {
"description": "Liên hệ được gán ngôn ngữ mặc định khi ngôn ngữ liên hệ không xác định.",
"label": "Ngôn ngữ",
diff --git a/apps/builder/messages/zh-CN.json b/apps/builder/messages/zh-CN.json
index 2c250fc450..7d240aeb5b 100644
--- a/apps/builder/messages/zh-CN.json
+++ b/apps/builder/messages/zh-CN.json
@@ -1875,6 +1875,10 @@
"description": "传回包含消息与操作的结构化 JSON,而不是纯文本流。",
"label": "丰富回应"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"javascriptCode": {
"description": "使用纯 JavaScript 并返回一个值。网络、文件、API 和外部库均不可用。可通过 `input` 对象访问联系人和系统数据。",
"label": "JavaScript 代码",
diff --git a/apps/builder/messages/zh-TW.json b/apps/builder/messages/zh-TW.json
index 13d4a967cf..6ba2e24bef 100644
--- a/apps/builder/messages/zh-TW.json
+++ b/apps/builder/messages/zh-TW.json
@@ -480,6 +480,10 @@
"description": "傳回包含訊息與操作的結構化 JSON,而不是純文字流。",
"label": "豐富回應"
},
+ "disableSummary": {
+ "description": "Use only recent conversation messages, without the accumulated summary. Long conversations may lose context older than the latest messages.",
+ "label": "Disable conversation summary"
+ },
"language": {
"description": "聯絡人將套用此預設語言。",
"label": "語言",
diff --git a/apps/builder/src/features/ai-agents/create-ai-agent.tsx b/apps/builder/src/features/ai-agents/create-ai-agent.tsx
index d4eb87cdbd..679eec5e07 100644
--- a/apps/builder/src/features/ai-agents/create-ai-agent.tsx
+++ b/apps/builder/src/features/ai-agents/create-ai-agent.tsx
@@ -100,6 +100,7 @@ export function CreateAIAgentDialog({
prompt: "",
isDefault: false,
isRichResponse: false,
+ disableSummary: false,
messages: [],
models: [
...aiChatProviders.map((provider) => ({
@@ -334,6 +335,15 @@ export function CreateAIAgentDialog({
+
+
+ {t("fields.disableSummary.label")}
+
+
+
+ {t("fields.disableSummary.description")}
+
+
{t("fields.isRichResponse.label")}
diff --git a/apps/builder/src/features/ai-agents/schemas/action.ts b/apps/builder/src/features/ai-agents/schemas/action.ts
index f9164b413a..b0605ec88b 100644
--- a/apps/builder/src/features/ai-agents/schemas/action.ts
+++ b/apps/builder/src/features/ai-agents/schemas/action.ts
@@ -64,6 +64,7 @@ export const createAIAgentRequest = z.object({
webSearchAuthorizedDomains: webSearchAuthorizedDomainsSchema.default([]),
isDefault: z.boolean(),
isRichResponse: z.boolean().default(false),
+ disableSummary: z.boolean().default(false),
})
export type CreateAIAgentRequest = z.infer
@@ -71,6 +72,7 @@ export const updateAIAgentRequest = createAIAgentRequest
.extend({
webSearchAuthorizedDomains: webSearchAuthorizedDomainsSchema,
isRichResponse: z.boolean(),
+ disableSummary: z.boolean(),
})
.partial()
export type UpdateAIAgentRequest = z.infer
diff --git a/apps/builder/src/features/ai-agents/update-ai-agent.tsx b/apps/builder/src/features/ai-agents/update-ai-agent.tsx
index d0cd93f44b..9812ef53ae 100644
--- a/apps/builder/src/features/ai-agents/update-ai-agent.tsx
+++ b/apps/builder/src/features/ai-agents/update-ai-agent.tsx
@@ -165,6 +165,7 @@ export function UpdateAIAgentDialog({
setValue("messages", agent.messages as UpdateAIAgentRequest["messages"])
setValue("tools", agent.tools)
setValue("isRichResponse", agent.isRichResponse)
+ setValue("disableSummary", agent.disableSummary)
setValue(
"webSearchAuthorizedDomains",
agent.webSearchAuthorizedDomains.map((domain) => ({ value: domain })),
@@ -341,6 +342,15 @@ export function UpdateAIAgentDialog({
+
+
+ {t("fields.disableSummary.label")}
+
+
+
+ {t("fields.disableSummary.description")}
+
+
{t("fields.isRichResponse.label")}
diff --git a/apps/worker/__tests__/ai-agent-runner-openai-compatible.test.ts b/apps/worker/__tests__/ai-agent-runner-openai-compatible.test.ts
index 99ce8d21bb..af419a4e85 100644
--- a/apps/worker/__tests__/ai-agent-runner-openai-compatible.test.ts
+++ b/apps/worker/__tests__/ai-agent-runner-openai-compatible.test.ts
@@ -78,6 +78,7 @@ function makeAIAgent(overrides?: Partial
): AIAgentModel {
messages: [],
isDefault: false,
isRichResponse: false,
+ disableSummary: false,
tools: [],
webSearchAuthorizedDomains: [],
models: [{ provider: "openai", model: "gpt-5.4-mini" }],
@@ -181,6 +182,21 @@ describe("AI agent runner OpenAI-compatible providers", () => {
})
})
+ test("omits conversation summary from the system prompt when disabled", async () => {
+ await runAIAgentRunner({
+ aiAgent: makeAIAgent({ disableSummary: true }),
+ conversation: makeConversation(),
+ messages: [] as ModelMessage[],
+ summary: "Old lead data",
+ })
+
+ expect(streamText).toHaveBeenCalledWith(
+ expect.objectContaining({
+ system: "You are helpful.",
+ }),
+ )
+ })
+
test("runs a preferred OpenAI-compatible model without native provider filtering", async () => {
const result = await runAIAgentRunner({
aiAgent: makeAIAgent({
diff --git a/apps/worker/__tests__/ai-generate-text-agent-openai-compatible.test.ts b/apps/worker/__tests__/ai-generate-text-agent-openai-compatible.test.ts
index 9bc54d0e65..a0c19a074e 100644
--- a/apps/worker/__tests__/ai-generate-text-agent-openai-compatible.test.ts
+++ b/apps/worker/__tests__/ai-generate-text-agent-openai-compatible.test.ts
@@ -62,6 +62,7 @@ function makeAgent(): AIAgentModel {
messages: [],
isDefault: false,
isRichResponse: false,
+ disableSummary: false,
tools: [],
webSearchAuthorizedDomains: [],
models: [{ provider: "openai", model: "gpt-5.4-mini" }],
diff --git a/apps/worker/__tests__/automated-response-default-reply.test.ts b/apps/worker/__tests__/automated-response-default-reply.test.ts
index 046606218b..79d6bfbab1 100644
--- a/apps/worker/__tests__/automated-response-default-reply.test.ts
+++ b/apps/worker/__tests__/automated-response-default-reply.test.ts
@@ -190,6 +190,7 @@ function makeAIAgent(overrides?: Partial): AIAgentModel {
messages: [],
isDefault: false,
isRichResponse: false,
+ disableSummary: false,
tools: ["sys:some_tool"],
webSearchAuthorizedDomains: [],
models: [{ provider: "openai", model: "gpt-4o" }] as AIAgentModel["models"],
@@ -548,6 +549,21 @@ describe("replyByAI — default reply flow fallback", () => {
})
})
+ test("omits conversation summary from the system prompt when disabled", async () => {
+ await replyByAI({
+ ...baseProps,
+ aiAgent: makeAIAgent({ disableSummary: true }),
+ defaultReplyFlowId: null,
+ summary: "Old lead data",
+ })
+
+ expect(streamText).toHaveBeenCalledWith(
+ expect.objectContaining({
+ system: "You are a helpful assistant.",
+ }),
+ )
+ })
+
test("triggers the default reply flow instead of the canned fallback text when configured and valid", async () => {
findByFlowMock.mockResolvedValueOnce({
id: "flow-1",
diff --git a/apps/worker/__tests__/automated-response-rich-response.test.ts b/apps/worker/__tests__/automated-response-rich-response.test.ts
index 2af37800d0..8327a4b279 100644
--- a/apps/worker/__tests__/automated-response-rich-response.test.ts
+++ b/apps/worker/__tests__/automated-response-rich-response.test.ts
@@ -230,6 +230,7 @@ function makeAIAgent(overrides?: Partial): AIAgentModel {
messages: [],
isDefault: false,
isRichResponse: true,
+ disableSummary: false,
tools: [],
webSearchAuthorizedDomains: [],
models: [{ provider: "openai", model: "gpt-4o" }] as AIAgentModel["models"],
diff --git a/apps/worker/src/integration/handlers/automated-response/index.ts b/apps/worker/src/integration/handlers/automated-response/index.ts
index fa3959c4a6..a3dbc1cf95 100644
--- a/apps/worker/src/integration/handlers/automated-response/index.ts
+++ b/apps/worker/src/integration/handlers/automated-response/index.ts
@@ -173,6 +173,7 @@ export async function processAutomatedResponse(
workspaceId: conversation.workspaceId,
conversationId: conversation.id,
preferredModels: aiAgentModels,
+ disableSummary: aiAgent.disableSummary,
})
const markerMessageId =
aiContext?.markerMessageId ??
@@ -227,6 +228,7 @@ export async function processAutomatedResponse(
newMessages.length > 0
? await aiContextService.appendHistory({
conversationId: conversation.id,
+ disableSummary: aiAgent.disableSummary,
newMessages,
})
: aiContext
diff --git a/apps/worker/src/integration/handlers/automated-response/replies.ts b/apps/worker/src/integration/handlers/automated-response/replies.ts
index 0690372b88..a837a77301 100644
--- a/apps/worker/src/integration/handlers/automated-response/replies.ts
+++ b/apps/worker/src/integration/handlers/automated-response/replies.ts
@@ -657,7 +657,7 @@ async function runAIReply(
variables,
})
: ""
- const completePrompt = props.summary
+ const completePrompt = props.summary && !aiAgent.disableSummary
? `Conversation Context: ${props.summary}\n\n${promptBase}`
: promptBase
@@ -819,6 +819,7 @@ async function runAIReply(
if (directSendTracker.sentText) {
await aiContextService.appendHistory({
conversationId: conversation.id,
+ disableSummary: aiAgent.disableSummary,
newMessages: [
{
message: {
@@ -842,6 +843,7 @@ async function runAIReply(
if (messageCount > 0 && fullText) {
await aiContextService.appendHistory({
conversationId: conversation.id,
+ disableSummary: aiAgent.disableSummary,
newMessages: [
{
message: {
diff --git a/apps/worker/src/integration/handlers/automated-response/rich-reply.ts b/apps/worker/src/integration/handlers/automated-response/rich-reply.ts
index 0f4ed775cb..9e131e0eb1 100644
--- a/apps/worker/src/integration/handlers/automated-response/rich-reply.ts
+++ b/apps/worker/src/integration/handlers/automated-response/rich-reply.ts
@@ -70,7 +70,11 @@ export async function handleRichAIReply({
if (directSendTracker.sent) {
if (directSendTracker.sentText) {
- await appendAssistantHistory(conversation.id, directSendTracker.sentText)
+ await appendAssistantHistory({
+ content: directSendTracker.sentText,
+ conversationId: conversation.id,
+ disableSummary: props.aiAgent.disableSummary,
+ })
}
return buildSuccessResult({ buildToolStats, modelId, provider })
}
@@ -98,7 +102,11 @@ export async function handleRichAIReply({
if (parseResult.reason === "plain_text" && parseResult.text.trim()) {
const trimmedText = parseResult.text.trim()
await sendMessageAndWait(conversation.id, trimmedText, trackingContext)
- await appendAssistantHistory(conversation.id, trimmedText)
+ await appendAssistantHistory({
+ content: trimmedText,
+ conversationId: conversation.id,
+ disableSummary: props.aiAgent.disableSummary,
+ })
return buildSuccessResult({ buildToolStats, modelId, provider })
}
@@ -166,20 +174,26 @@ export async function handleRichAIReply({
})
}
- await appendAssistantHistory(conversation.id, fullText)
+ await appendAssistantHistory({
+ content: fullText,
+ conversationId: conversation.id,
+ disableSummary: props.aiAgent.disableSummary,
+ })
return buildSuccessResult({ buildToolStats, modelId, provider })
}
-async function appendAssistantHistory(
- conversationId: string,
- content: string,
-): Promise {
+async function appendAssistantHistory(props: {
+ conversationId: string
+ content: string
+ disableSummary?: boolean
+}): Promise {
await aiContextService.appendHistory({
- conversationId,
+ conversationId: props.conversationId,
+ disableSummary: props.disableSummary,
newMessages: [
{
- message: { role: "assistant", content },
+ message: { role: "assistant", content: props.content },
createdAt: Date.now(),
},
],
diff --git a/apps/worker/src/integration/handlers/generate-text-agent/index.ts b/apps/worker/src/integration/handlers/generate-text-agent/index.ts
index 95d5b807f7..af14eea8c3 100644
--- a/apps/worker/src/integration/handlers/generate-text-agent/index.ts
+++ b/apps/worker/src/integration/handlers/generate-text-agent/index.ts
@@ -52,6 +52,7 @@ export async function handleAIGenerateTextAgent({
workspaceId: conversation.workspaceId,
conversationId: conversation.id,
preferredModels: aiAgentModels,
+ disableSummary: aiAgent.disableSummary,
})
const messages = await buildAIAgentMessages(
diff --git a/apps/worker/src/integration/handlers/shared/ai-agent-runner.ts b/apps/worker/src/integration/handlers/shared/ai-agent-runner.ts
index daecdef2e0..81dc1a1bdd 100644
--- a/apps/worker/src/integration/handlers/shared/ai-agent-runner.ts
+++ b/apps/worker/src/integration/handlers/shared/ai-agent-runner.ts
@@ -156,7 +156,7 @@ async function runAIReplyInternal(
variables,
})
: ""
- const completePrompt = props.summary
+ const completePrompt = props.summary && !aiAgent.disableSummary
? `Conversation Context: ${props.summary}\n\n${promptBase}`
: promptBase
@@ -269,6 +269,7 @@ async function runAIReplyInternal(
if (fullText) {
await aiContextService.appendHistory({
conversationId: conversation.id,
+ disableSummary: aiAgent.disableSummary,
newMessages: [
{
message: {
diff --git a/packages/ai/__tests__/ai-context-service.test.ts b/packages/ai/__tests__/ai-context-service.test.ts
index b5ebea1cf5..29e898f06b 100644
--- a/packages/ai/__tests__/ai-context-service.test.ts
+++ b/packages/ai/__tests__/ai-context-service.test.ts
@@ -7,6 +7,7 @@ const mocks = vi.hoisted(() => ({
findConversationAIContextState: vi.fn(),
getSafeSinceTime: vi.fn(),
get: vi.fn(),
+ queueAdd: vi.fn(),
loggerError: vi.fn(),
runExclusive: vi.fn(),
summarizeConversation: vi.fn(),
@@ -20,7 +21,7 @@ vi.mock("@chatbotx.io/database/repositories", () => ({
}))
vi.mock("@chatbotx.io/worker-config", () => ({
AIJobAction: { summarizeConversation: "summarizeConversation" },
- aiAgentQueue: { add: vi.fn() },
+ aiAgentQueue: { add: mocks.queueAdd },
}))
vi.mock("../src/server/cache/ai-context-store", () => ({
aiContextStore: {
@@ -105,6 +106,29 @@ describe("aiContextService.getOrInitContext", () => {
)
})
+ test("does not summarize restored history when summaries are disabled", async () => {
+ const createdAt = new Date("2026-06-01T00:00:00.000Z")
+ mocks.createMessageRepository.mockResolvedValue({
+ findAIContextMessages: vi.fn().mockResolvedValue([
+ { id: "10", text: "new lead", senderType: "contact", createdAt },
+ ]),
+ })
+ mocks.findConversationAIContextState.mockResolvedValue({
+ aiContextLastMessageId: null,
+ lastActivityAt: createdAt,
+ })
+
+ const result = await aiContextService.getOrInitContext({
+ workspaceId: "ws-1",
+ conversationId: "conv-1",
+ disableSummary: true,
+ })
+
+ expect(result?.summary).toBe("")
+ expect(result?.history).toHaveLength(1)
+ expect(mocks.summarizeConversation).not.toHaveBeenCalled()
+ })
+
test("keeps only messages newer than the marker when timestamps match", async () => {
const createdAt = new Date("2026-06-01T00:00:00.000Z")
const findAIContextMessages = vi
@@ -200,3 +224,66 @@ describe("aiContextService.getOrInitContext", () => {
expect(mocks.update).not.toHaveBeenCalled()
})
})
+
+describe("aiContextService.appendHistory", () => {
+ beforeEach(() => {
+ vi.clearAllMocks()
+ mocks.runExclusive.mockImplementation(
+ (_conversationId: string, fn: () => Promise) => fn(),
+ )
+ mocks.update.mockResolvedValue(undefined)
+ })
+
+ test("does not enqueue summarization when summaries are disabled", async () => {
+ const existingHistory = Array.from({ length: 100 }, (_, index) => ({
+ role: "user" as const,
+ content: `message ${index}`,
+ messageId: `${index}`,
+ createdAt: index,
+ }))
+ mocks.get
+ .mockResolvedValueOnce({
+ markerMessageId: null,
+ summary: "old summary",
+ history: existingHistory,
+ summarizing: false,
+ needsResummarize: false,
+ updatedAt: Date.now(),
+ })
+ .mockResolvedValueOnce({
+ markerMessageId: null,
+ summary: "old summary",
+ history: existingHistory.slice(1),
+ summarizing: false,
+ needsResummarize: false,
+ updatedAt: Date.now(),
+ })
+
+ await aiContextService.appendHistory({
+ conversationId: "conv-1",
+ disableSummary: true,
+ newMessages: [
+ {
+ message: { role: "assistant", content: "reply" },
+ messageId: "reply-1",
+ createdAt: 101,
+ },
+ ],
+ })
+
+ expect(mocks.queueAdd).not.toHaveBeenCalled()
+ expect(mocks.update).toHaveBeenCalledWith(
+ "conv-1",
+ expect.objectContaining({
+ needsResummarize: false,
+ history: expect.arrayContaining([
+ expect.objectContaining({ messageId: "reply-1" }),
+ ]),
+ }),
+ )
+ const updatePayload = mocks.update.mock.calls[0]?.[1] as {
+ history: unknown[]
+ }
+ expect(updatePayload.history).toHaveLength(100)
+ })
+})
diff --git a/packages/ai/src/server/services/ai-context-service.ts b/packages/ai/src/server/services/ai-context-service.ts
index 4213043b8e..b4218717bc 100644
--- a/packages/ai/src/server/services/ai-context-service.ts
+++ b/packages/ai/src/server/services/ai-context-service.ts
@@ -227,8 +227,9 @@ export const aiContextService = {
workspaceId: string
conversationId: string
preferredModels?: AIAgentProviderModels
+ disableSummary?: boolean
}): Promise {
- const { workspaceId, conversationId, preferredModels } = props
+ const { workspaceId, conversationId, preferredModels, disableSummary } = props
return await aiContextStore
.runExclusive(conversationId, async () => {
@@ -270,7 +271,7 @@ export const aiContextService = {
const modelMessages = this.mapContextToModelMessages(aiHistory)
const summary =
- modelMessages.length > 0
+ modelMessages.length > 0 && !disableSummary
? await summarizeConversation({
workspaceId,
messages: modelMessages,
@@ -318,8 +319,9 @@ export const aiContextService = {
async appendHistory(props: {
conversationId: string
newMessages: ContextInputMessage[]
+ disableSummary?: boolean
}): Promise {
- const { conversationId, newMessages } = props
+ const { conversationId, newMessages, disableSummary } = props
return await aiContextStore
.runExclusive(conversationId, async () => {
@@ -354,11 +356,15 @@ export const aiContextService = {
return await aiContextStore.get(conversationId)
}
- const shouldSummarize = currentHistory.length > MAX_CONVERSATION_HISTORY
+ const shouldSummarize =
+ currentHistory.length > MAX_CONVERSATION_HISTORY && !disableSummary
const isSummarizing = context.summarizing === true
+ const history = disableSummary
+ ? currentHistory.slice(-MAX_CONVERSATION_HISTORY)
+ : currentHistory
await aiContextStore.update(conversationId, {
- history: currentHistory,
+ history,
needsResummarize: shouldSummarize && isSummarizing,
})
diff --git a/packages/business/__tests__/ai-agent.service.test.ts b/packages/business/__tests__/ai-agent.service.test.ts
index a376c38c1d..ceaed3115c 100644
--- a/packages/business/__tests__/ai-agent.service.test.ts
+++ b/packages/business/__tests__/ai-agent.service.test.ts
@@ -104,6 +104,7 @@ const aiAgent = {
} as AIAgentModel
const createRequest = {
+ disableSummary: false,
isDefault: false,
isRichResponse: false,
maxOutputTokens: 1000,
diff --git a/packages/business/src/ai-agent/service.ts b/packages/business/src/ai-agent/service.ts
index 114ae7956e..ce5936ebf3 100644
--- a/packages/business/src/ai-agent/service.ts
+++ b/packages/business/src/ai-agent/service.ts
@@ -61,6 +61,7 @@ export type CreateAIAgentRequest = {
tools: string[]
isDefault: boolean
isRichResponse: boolean
+ disableSummary: boolean
webSearchAuthorizedDomains?: WebSearchAuthorizedDomain[] | null
}
diff --git a/packages/business/src/template/adapters/ai-agents.ts b/packages/business/src/template/adapters/ai-agents.ts
index 399a0437d8..ea89576bca 100644
--- a/packages/business/src/template/adapters/ai-agents.ts
+++ b/packages/business/src/template/adapters/ai-agents.ts
@@ -26,6 +26,7 @@ type TemplateAIAgentEntry = {
tools: string[]
isDefault: boolean
isRichResponse: boolean
+ disableSummary?: boolean
webSearchAuthorizedDomains?: string[] | null
}
@@ -102,6 +103,7 @@ export const aiAgentsAdapter: ResourceAdapter = {
// otherwise enforces by clearing the flag first.
isDefault: false,
isRichResponse: entry.isRichResponse,
+ disableSummary: entry.disableSummary ?? false,
webSearchAuthorizedDomains: entry.webSearchAuthorizedDomains ?? [],
})
@@ -167,6 +169,7 @@ export const aiAgentsAdapter: ResourceAdapter = {
tools: row.tools,
isDefault: row.isDefault,
isRichResponse: row.isRichResponse,
+ disableSummary: row.disableSummary,
webSearchAuthorizedDomains: row.webSearchAuthorizedDomains,
}))
diff --git a/packages/database/drizzle/20260826000000_add_ai_agent_disable_summary/migration.sql b/packages/database/drizzle/20260826000000_add_ai_agent_disable_summary/migration.sql
new file mode 100644
index 0000000000..1e3aa700aa
--- /dev/null
+++ b/packages/database/drizzle/20260826000000_add_ai_agent_disable_summary/migration.sql
@@ -0,0 +1 @@
+ALTER TABLE "AIAgent" ADD COLUMN "disableSummary" boolean DEFAULT false NOT NULL;
diff --git a/packages/database/drizzle/20260826000000_add_ai_agent_disable_summary/snapshot.json b/packages/database/drizzle/20260826000000_add_ai_agent_disable_summary/snapshot.json
new file mode 100644
index 0000000000..662e71fcbb
--- /dev/null
+++ b/packages/database/drizzle/20260826000000_add_ai_agent_disable_summary/snapshot.json
@@ -0,0 +1,40973 @@
+{
+ "version": "8",
+ "dialect": "postgres",
+ "id": "6aaaf325-a3bf-4fa4-85ba-55e2ec37850f",
+ "prevIds": [
+ "cf8f7e8b-7d65-4c25-8b60-64b8cdbdcd0e"
+ ],
+ "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": [
+ "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"
+ ],
+ "name": "broadcastScheduleType",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "scheduled",
+ "sent",
+ "sending",
+ "cancelled"
+ ],
+ "name": "broadcastStatus",
+ "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"
+ ],
+ "name": "coexistRunStatus",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "male",
+ "female",
+ "unknown"
+ ],
+ "name": "gender",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "text",
+ "location",
+ "refLink",
+ "image",
+ "video",
+ "audio",
+ "gif",
+ "file"
+ ],
+ "name": "lastUserInputType",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "pending",
+ "scheduled",
+ "completed",
+ "failed",
+ "canceled"
+ ],
+ "name": "ContactOnSmartDelayStatus",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "waitNode",
+ "followUp"
+ ],
+ "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": [
+ "messenger",
+ "instagram",
+ "instagramFacebook"
+ ],
+ "name": "fbCommentAutomationType",
+ "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": [
+ "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": [
+ "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": [
+ "pending_verification",
+ "registered",
+ "failed"
+ ],
+ "name": "whatsappRegistrationStatus",
+ "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": [
+ "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": [
+ "luckyWheel",
+ "jackpot",
+ "gashapon",
+ "drawLots",
+ "scratchOff"
+ ],
+ "name": "minigameType",
+ "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": [
+ "pending",
+ "installing",
+ "completed",
+ "partial",
+ "failed"
+ ],
+ "name": "templateInstallationStatus",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "flows",
+ "customFields",
+ "tags"
+ ],
+ "name": "templateResourceCategory",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "ios",
+ "android"
+ ],
+ "name": "devicePlatform",
+ "entityType": "enums",
+ "schema": "public"
+ },
+ {
+ "values": [
+ "allTime",
+ "oncePerHour",
+ "oncePerDay"
+ ],
+ "name": "defaultReplyFrequency",
+ "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": "AIAssistant",
+ "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": "AIMCPServer",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "AITrigger",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "AITriggerToIntegrationOpenai",
+ "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": "CoexistSyncRun",
+ "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": "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": "DynamicImage",
+ "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": "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": "FBCommentAutomation",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "FBCommentAutomationReply",
+ "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": "IgStoryAutomation",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "Import",
+ "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": "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": "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": "MagicLink",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "MagicLinkStat",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "Message",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "MessageCleanup",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "MessengerMessageTemplate",
+ "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": "Minigame",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "MinigameContact",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "MinigamePlay",
+ "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": "SavedReply",
+ "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": "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": "Webhook",
+ "entityType": "tables",
+ "schema": "public"
+ },
+ {
+ "isRlsEnabled": false,
+ "name": "WebhookExecution",
+ "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": "Workspace",
+ "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": "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": "boolean",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "false",
+ "generated": null,
+ "identity": null,
+ "name": "disableSummary",
+ "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": "AIAssistant"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "createdAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "updatedAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "workspaceId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "name",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "prompt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "model",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 1,
+ "default": "",
+ "generated": null,
+ "identity": null,
+ "name": "aiTriggerIds",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 1,
+ "default": "",
+ "generated": null,
+ "identity": null,
+ "name": "attachmentIds",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "type": "double precision",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "temperature",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "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": "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": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "id",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "createdAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "updatedAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "workspaceId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "name",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "description",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "flowId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 1,
+ "default": "",
+ "generated": null,
+ "identity": null,
+ "name": "questions",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "finalMessage",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "aiTriggerId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITriggerToIntegrationOpenai"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "integrationOpenaiId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "AITriggerToIntegrationOpenai"
+ },
+ {
+ "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": "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": "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": "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": "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": "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": "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": 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": "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": "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": "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": "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": "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": "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": "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": "sourceUsername",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "ContactInbox"
+ },
+ {
+ "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": "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": "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": "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": "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": "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": "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": "bigint",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "flowId",
+ "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": "FBCommentAutomation"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "createdAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "updatedAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "name",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "workspaceId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "folderId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "fbCommentAutomationType",
+ "typeSchema": "public",
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'messenger'",
+ "generated": null,
+ "identity": null,
+ "name": "type",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "boolean",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "true",
+ "generated": null,
+ "identity": null,
+ "name": "isActive",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "startTime",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "endTime",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "integer",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "0",
+ "generated": null,
+ "identity": null,
+ "name": "repliesCount",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'{\"type\":\"all\",\"value\":[]}'",
+ "generated": null,
+ "identity": null,
+ "name": "post",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'{\"type\":\"text\",\"value\":\"\"}'",
+ "generated": null,
+ "identity": null,
+ "name": "privateReply",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'{\"type\":\"none\",\"value\":null}'",
+ "generated": null,
+ "identity": null,
+ "name": "publicReply",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'{\"type\":\"all\",\"value\":[]}'",
+ "generated": null,
+ "identity": null,
+ "name": "includeKeywords",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 1,
+ "default": "ARRAY[]",
+ "generated": null,
+ "identity": null,
+ "name": "excludeKeywords",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "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": "FBCommentAutomation"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'",
+ "generated": null,
+ "identity": null,
+ "name": "hideComments",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "jsonb",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "'{\"type\":\"immediately\",\"value\":0}'",
+ "generated": null,
+ "identity": null,
+ "name": "replyAfter",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "id",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "createdAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "type": "timestamp(6) with time zone",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "now()",
+ "generated": null,
+ "identity": null,
+ "name": "updatedAt",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "automationId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "contactId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "type": "text",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "postId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "type": "bigint",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "workspaceId",
+ "entityType": "columns",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "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": "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": "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": "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": "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": "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": "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": "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": 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": "aiAssistantId",
+ "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": "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": 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": "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": 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": "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": "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": "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": "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": 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": "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": "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": "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": 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": "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": "text",
+ "typeSchema": null,
+ "notNull": false,
+ "dimensions": 0,
+ "default": null,
+ "generated": null,
+ "identity": null,
+ "name": "vendor",
+ "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "boolean",
+ "typeSchema": null,
+ "notNull": true,
+ "dimensions": 0,
+ "default": "false",
+ "generated": null,
+ "identity": null,
+ "name": "capiLimitedDataUse",
+ "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": "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": "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"
+ },
+ {
+ "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": "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": "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": "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": "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'",
+ "with": "",
+ "method": "btree",
+ "concurrently": false,
+ "name": "CoexistSyncRun_integration_init_uq",
+ "entityType": "indexes",
+ "schema": "public",
+ "table": "CoexistSyncRun"
+ },
+ {
+ "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": "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": "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": "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": "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": "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": "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": "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
+ },
+ {
+ "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
+ },
+ {
+ "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": "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": "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": "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": "FBCommentAutomation_workspaceId_idx",
+ "entityType": "indexes",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "nameExplicit": true,
+ "columns": [
+ {
+ "value": "folderId",
+ "isExpression": false,
+ "asc": true,
+ "nullsFirst": false,
+ "opclass": null
+ }
+ ],
+ "isUnique": false,
+ "where": null,
+ "with": "",
+ "method": "btree",
+ "concurrently": false,
+ "name": "FBCommentAutomation_folderId_idx",
+ "entityType": "indexes",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "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": "FBCommentAutomationReply_dedup_idx",
+ "entityType": "indexes",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "nameExplicit": true,
+ "columns": [
+ {
+ "value": "contactId",
+ "isExpression": false,
+ "asc": true,
+ "nullsFirst": false,
+ "opclass": null
+ }
+ ],
+ "isUnique": false,
+ "where": null,
+ "with": "",
+ "method": "btree",
+ "concurrently": false,
+ "name": "FBCommentAutomationReply_contactId_idx",
+ "entityType": "indexes",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "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
+ }
+ ],
+ "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": 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": [
+ "workspaceId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Workspace",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "CASCADE",
+ "name": "AIAssistant_workspaceId_Workspace_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "AIAssistant"
+ },
+ {
+ "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": "AIMCPServer_workspaceId_Workspace_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "AIMCPServer"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "workspaceId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Workspace",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "CASCADE",
+ "name": "AITrigger_workspaceId_Workspace_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "flowId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Flow",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "SET NULL",
+ "name": "AITrigger_flowId_Flow_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "AITrigger"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "aiTriggerId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "AITrigger",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "CASCADE",
+ "name": "AITriggerToIntegrationOpenai_aiTriggerId_AITrigger_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "AITriggerToIntegrationOpenai"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "integrationOpenaiId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "IntegrationOpenai",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "CASCADE",
+ "name": "AITriggerToIntegrationOpenai_rSgeY7c25Tng_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "AITriggerToIntegrationOpenai"
+ },
+ {
+ "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": [
+ "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": [
+ "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": "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": "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": [
+ "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": [
+ "flowId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Flow",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "SET NULL",
+ "name": "FacebookLeadAdsAutomation_flowId_Flow_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": "FBCommentAutomation_workspaceId_Workspace_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "folderId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Folder",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "SET NULL",
+ "name": "FBCommentAutomation_folderId_Folder_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "FBCommentAutomation"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "automationId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "FBCommentAutomation",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "NO ACTION",
+ "onDelete": "CASCADE",
+ "name": "FBCommentAutomationReply_Q6yXIfuQcsD0_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "contactId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Contact",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "NO ACTION",
+ "onDelete": "CASCADE",
+ "name": "FBCommentAutomationReply_contactId_Contact_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "nameExplicit": false,
+ "columns": [
+ "workspaceId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "Workspace",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "NO ACTION",
+ "onDelete": "CASCADE",
+ "name": "FBCommentAutomationReply_workspaceId_Workspace_id_fkey",
+ "entityType": "fks",
+ "schema": "public",
+ "table": "FBCommentAutomationReply"
+ },
+ {
+ "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": "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": [
+ "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": "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": "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": [
+ "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": [
+ "aiAssistantId"
+ ],
+ "schemaTo": "public",
+ "tableTo": "AIAssistant",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "CASCADE",
+ "onDelete": "SET NULL",
+ "name": "IntegrationOpenai_aiAssistantId_AIAssistant_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": "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": [
+ "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": "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": [
+ "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": "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": "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": [
+ "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": [
+ "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": [
+ "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": [
+ "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": [
+ "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": "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": [
+ "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": [
+ "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": [
+ "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": "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": [
+ "aiTriggerId",
+ "integrationOpenaiId"
+ ],
+ "nameExplicit": false,
+ "name": "AITriggerToIntegrationOpenai_pkey",
+ "entityType": "pks",
+ "schema": "public",
+ "table": "AITriggerToIntegrationOpenai"
+ },
+ {
+ "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": [
+ "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": [
+ "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": [
+ "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": "AIAssistant_pkey",
+ "schema": "public",
+ "table": "AIAssistant",
+ "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": "AIMCPServer_pkey",
+ "schema": "public",
+ "table": "AIMCPServer",
+ "entityType": "pks"
+ },
+ {
+ "columns": [
+ "id"
+ ],
+ "nameExplicit": false,
+ "name": "AITrigger_pkey",
+ "schema": "public",
+ "table": "AITrigger",
+ "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": "CoexistSyncRun_pkey",
+ "schema": "public",
+ "table": "CoexistSyncRun",
+ "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": "DynamicImage_pkey",
+ "schema": "public",
+ "table": "DynamicImage",
+ "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": "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": "FBCommentAutomation_pkey",
+ "schema": "public",
+ "table": "FBCommentAutomation",
+ "entityType": "pks"
+ },
+ {
+ "columns": [
+ "id"
+ ],
+ "nameExplicit": false,
+ "name": "FBCommentAutomationReply_pkey",
+ "schema": "public",
+ "table": "FBCommentAutomationReply",
+ "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": "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": "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": "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": "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": "MagicLink_pkey",
+ "schema": "public",
+ "table": "MagicLink",
+ "entityType": "pks"
+ },
+ {
+ "columns": [
+ "id"
+ ],
+ "nameExplicit": false,
+ "name": "MessageCleanup_pkey",
+ "schema": "public",
+ "table": "MessageCleanup",
+ "entityType": "pks"
+ },
+ {
+ "columns": [
+ "id"
+ ],
+ "nameExplicit": false,
+ "name": "MessengerMessageTemplate_pkey",
+ "schema": "public",
+ "table": "MessengerMessageTemplate",
+ "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": "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": "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": "SavedReply_pkey",
+ "schema": "public",
+ "table": "SavedReply",
+ "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": "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": "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": "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": "Workspace_pkey",
+ "schema": "public",
+ "table": "Workspace",
+ "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": [
+ "token"
+ ],
+ "nullsNotDistinct": false,
+ "name": "UserDeviceToken_token_key",
+ "entityType": "uniques",
+ "schema": "public",
+ "table": "UserDeviceToken"
+ },
+ {
+ "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": "(\"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\" IN ('messenger', 'instagram', 'whatsapp')",
+ "name": "MetaCapiEvent_channel_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": "cardinality(\"candidatePhoneNumberIds\") > 0",
+ "name": "WhatsappSignupSession_candidates_not_empty",
+ "entityType": "checks",
+ "schema": "public",
+ "table": "WhatsappSignupSession"
+ }
+ ],
+ "renames": []
+}
diff --git a/packages/database/src/schema/ai-agent.ts b/packages/database/src/schema/ai-agent.ts
index 4ece36b123..a793ab5e3f 100644
--- a/packages/database/src/schema/ai-agent.ts
+++ b/packages/database/src/schema/ai-agent.ts
@@ -23,6 +23,7 @@ export const aiAgentModel = pgTable("AIAgent", {
messages: jsonb().array().notNull().default(sql`[]`),
isDefault: boolean().default(false).notNull(),
isRichResponse: boolean().default(false).notNull(),
+ disableSummary: boolean().default(false).notNull(),
tools: text().array().notNull().default(sql`[]`),
webSearchAuthorizedDomains: text().array().notNull().default(sql`[]`),
models: jsonb().array().notNull().default(sql`[]`),