diff --git a/ee/admin/src/components/provider-key-spend-cell.tsx b/ee/admin/src/components/provider-key-spend-cell.tsx
new file mode 100644
index 0000000000..99d3d091fa
--- /dev/null
+++ b/ee/admin/src/components/provider-key-spend-cell.tsx
@@ -0,0 +1,65 @@
+import {
+ formatUsd,
+ getSpendLimitState,
+ spendLimitFraction,
+ type SpendLimited,
+} from "@/lib/provider-key-spend";
+import { cn } from "@/lib/utils";
+
+/**
+ * Lifetime attributed spend against the configured cap, with a bar so an
+ * operator can see a key approaching its limit before it trips rather than only
+ * after the worker has already turned it off.
+ */
+export function ProviderKeySpendCell({ keyRow }: { keyRow: SpendLimited }) {
+ const state = getSpendLimitState(keyRow);
+ const fraction = spendLimitFraction(keyRow);
+
+ return (
+
+
+ {formatUsd(keyRow.usage)}
+
+ {keyRow.usageLimit !== null ? (
+ <>
+
+ of {formatUsd(keyRow.usageLimit)}
+
+ {fraction !== null ? (
+
+ ) : null}
+ >
+ ) : (
+
no limit
+ )}
+
+ );
+}
diff --git a/ee/admin/src/components/provider-key-status-badge.tsx b/ee/admin/src/components/provider-key-status-badge.tsx
new file mode 100644
index 0000000000..8365f86195
--- /dev/null
+++ b/ee/admin/src/components/provider-key-status-badge.tsx
@@ -0,0 +1,46 @@
+import { Badge } from "@/components/ui/badge";
+import {
+ formatUsd,
+ getSpendLimitState,
+ type SpendLimited,
+} from "@/lib/provider-key-spend";
+
+/**
+ * Status of a provider key as it affects gateway selection. A key that crossed
+ * its spend cap reads as "limit reached" rather than a bare "inactive", so an
+ * operator can tell an automatic shut-off from a manual one — and sees the
+ * short window where the cap is crossed but the worker has not flipped the row
+ * yet, during which the key is still serving traffic.
+ */
+export function ProviderKeyStatusBadge({ keyRow }: { keyRow: SpendLimited }) {
+ const state = getSpendLimitState(keyRow);
+ const cap = formatUsd(keyRow.usageLimit ?? "0");
+
+ if (state === "reached") {
+ return (
+
+ limit reached
+
+ );
+ }
+
+ if (state === "reached-pending") {
+ return (
+
+ limit reached · disabling
+
+ );
+ }
+
+ return (
+
+ {keyRow.status ?? "active"}
+
+ );
+}
diff --git a/ee/admin/src/lib/provider-key-spend.spec.ts b/ee/admin/src/lib/provider-key-spend.spec.ts
new file mode 100644
index 0000000000..c4a96b47c5
--- /dev/null
+++ b/ee/admin/src/lib/provider-key-spend.spec.ts
@@ -0,0 +1,137 @@
+import { describe, expect, test } from "vitest";
+
+import {
+ formatUsd,
+ getSpendLimitState,
+ isInRotation,
+ spendLimitFraction,
+} from "./provider-key-spend";
+
+describe("provider key spend limits", () => {
+ describe("getSpendLimitState", () => {
+ test("reports no cap when usageLimit is null", () => {
+ expect(
+ getSpendLimitState({
+ status: "active",
+ usage: "500",
+ usageLimit: null,
+ }),
+ ).toBe("none");
+ });
+
+ test("reports ok well under the cap", () => {
+ expect(
+ getSpendLimitState({
+ status: "active",
+ usage: "10",
+ usageLimit: "100",
+ }),
+ ).toBe("ok");
+ });
+
+ test("warns approaching the cap", () => {
+ expect(
+ getSpendLimitState({
+ status: "active",
+ usage: "80",
+ usageLimit: "100",
+ }),
+ ).toBe("warning");
+ });
+
+ test("flags a crossed cap that the worker has not yet acted on", () => {
+ // Enforcement lags by one batch, so an over-cap key can still be active
+ // and still serving traffic. Showing a plain "active" badge here would
+ // be wrong.
+ expect(
+ getSpendLimitState({
+ status: "active",
+ usage: "100",
+ usageLimit: "100",
+ }),
+ ).toBe("reached-pending");
+ });
+
+ test("flags a crossed cap on a deactivated key", () => {
+ expect(
+ getSpendLimitState({
+ status: "inactive",
+ usage: "120",
+ usageLimit: "100",
+ }),
+ ).toBe("reached");
+ });
+
+ test("clears once the limit is raised above current usage", () => {
+ expect(
+ getSpendLimitState({
+ status: "inactive",
+ usage: "120",
+ usageLimit: "500",
+ }),
+ ).toBe("ok");
+ });
+
+ test("treats a zero or malformed cap as uncapped", () => {
+ // A zero cap would divide to Infinity and paint every key as over-limit.
+ expect(
+ getSpendLimitState({ status: "active", usage: "5", usageLimit: "0" }),
+ ).toBe("none");
+ expect(
+ getSpendLimitState({ status: "active", usage: "5", usageLimit: "abc" }),
+ ).toBe("none");
+ });
+ });
+
+ describe("spendLimitFraction", () => {
+ test("returns the consumed share of the cap", () => {
+ expect(
+ spendLimitFraction({
+ status: "active",
+ usage: "25",
+ usageLimit: "100",
+ }),
+ ).toBe(0.25);
+ });
+
+ test("returns null when uncapped", () => {
+ expect(
+ spendLimitFraction({ status: "active", usage: "25", usageLimit: null }),
+ ).toBeNull();
+ });
+
+ test("does not clamp past the cap", () => {
+ expect(
+ spendLimitFraction({
+ status: "inactive",
+ usage: "150",
+ usageLimit: "100",
+ }),
+ ).toBe(1.5);
+ });
+ });
+
+ describe("isInRotation", () => {
+ test("only active keys are eligible for selection", () => {
+ expect(
+ isInRotation({ status: "active", usage: "0", usageLimit: null }),
+ ).toBe(true);
+ expect(
+ isInRotation({ status: "inactive", usage: "0", usageLimit: null }),
+ ).toBe(false);
+ expect(
+ isInRotation({ status: "deleted", usage: "0", usageLimit: null }),
+ ).toBe(false);
+ });
+ });
+
+ describe("formatUsd", () => {
+ test("formats to two decimals", () => {
+ expect(formatUsd("12.3")).toBe("$12.30");
+ });
+
+ test("passes through unparseable values", () => {
+ expect(formatUsd("n/a")).toBe("$n/a");
+ });
+ });
+});
diff --git a/ee/admin/src/lib/provider-key-spend.ts b/ee/admin/src/lib/provider-key-spend.ts
index 382d588440..413dcac0be 100644
--- a/ee/admin/src/lib/provider-key-spend.ts
+++ b/ee/admin/src/lib/provider-key-spend.ts
@@ -2,7 +2,7 @@
* Spend-limit helpers shared by the managed-credential manager and the
* per-organization BYOK provider-key table. Both render the same lifetime
* `provider_key.usage` counter against the same cap, so the formatting and the
- * "did the worker turn this off" rule live in one place.
+ * "is this key still usable" rule live in one place.
*/
export interface SpendLimited {
@@ -11,21 +11,64 @@ export interface SpendLimited {
usageLimit: string | null;
}
+/** Share of the cap at which the UI starts warning. */
+const WARNING_THRESHOLD = 0.8;
+
+export type SpendLimitState =
+ /** No cap configured. */
+ | "none"
+ /** Under the warning threshold. */
+ | "ok"
+ /** Close enough to the cap that it will likely trip soon. */
+ | "warning"
+ /**
+ * At or over the cap but still active: enforcement is lagged by one billing
+ * worker batch, so the gateway can still select this key for a few seconds.
+ */
+ | "reached-pending"
+ /** At or over the cap and deactivated — out of rotation. */
+ | "reached";
+
export function formatUsd(value: string): string {
const amount = Number(value);
return Number.isFinite(amount) ? `$${amount.toFixed(2)}` : `$${value}`;
}
/**
- * A key the worker auto-deactivated because its attributed spend reached the
- * configured cap. Derived, not stored: an inactive key whose usage sits at or
- * above its limit can only have gotten there via the worker (reactivating it
- * without raising the limit is rejected by the API).
+ * Fraction of the configured cap consumed, or null when uncapped. Not clamped:
+ * a key can finish a batch slightly over its cap before the worker turns it off.
+ */
+export function spendLimitFraction(key: SpendLimited): number | null {
+ if (key.usageLimit === null) {
+ return null;
+ }
+ const limit = Number(key.usageLimit);
+ if (!Number.isFinite(limit) || limit <= 0) {
+ return null;
+ }
+ return Number(key.usage) / limit;
+}
+
+export function getSpendLimitState(key: SpendLimited): SpendLimitState {
+ const fraction = spendLimitFraction(key);
+ if (fraction === null) {
+ return "none";
+ }
+ if (fraction >= 1) {
+ // Deliberately independent of status: the cap is crossed the moment the
+ // worker credits the spend, and the status flip lands one batch later.
+ // Reporting "active" in that window would tell an operator the key is
+ // fine seconds before it turns itself off.
+ return key.status === "active" ? "reached-pending" : "reached";
+ }
+ return fraction >= WARNING_THRESHOLD ? "warning" : "ok";
+}
+
+/**
+ * Whether the gateway will consider this key at all. Provider-key selection
+ * filters on `status = 'active'`, so anything else is skipped regardless of
+ * its position in the rotation order.
*/
-export function hasReachedSpendLimit(key: SpendLimited): boolean {
- return (
- key.status === "inactive" &&
- key.usageLimit !== null &&
- Number(key.usage) >= Number(key.usageLimit)
- );
+export function isInRotation(key: SpendLimited): boolean {
+ return key.status === "active";
}
diff --git a/packages/actions/src/prepare-request-body.spec.ts b/packages/actions/src/prepare-request-body.spec.ts
index 2a0016779e..cc1bb144ec 100644
--- a/packages/actions/src/prepare-request-body.spec.ts
+++ b/packages/actions/src/prepare-request-body.spec.ts
@@ -4802,6 +4802,110 @@ describe("prepareRequestBody - max_tokens forwarding", () => {
expect(requestBody.max_tokens).toBeUndefined();
});
+
+ // Together AI takes graded tiers through `reasoning_effort` everywhere,
+ // but disabling thinking differs per serving stack: the gpt-oss and Gemma
+ // deployments take `reasoning_effort: "none"`, while the DeepSeek/MiniMax/
+ // Kimi deployments only honour `thinking: { type: "disabled" }` and mark
+ // themselves with `requiresDisableThinkingParam`. Verified live.
+ const togetherReasoning = (
+ model: string,
+ externalId: string,
+ reasoning_effort:
+ | "none"
+ | "minimal"
+ | "low"
+ | "medium"
+ | "high"
+ | "xhigh"
+ | "max"
+ | undefined,
+ ) =>
+ prepareRequestBody(
+ "together-ai",
+ model,
+ null,
+ externalId,
+ [{ role: "user", content: "Hello!" }],
+ false,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ reasoning_effort,
+ true,
+ false,
+ ) as Promise
;
+
+ test("forwards reasoning_effort on validating routes", async () => {
+ const requestBody = await togetherReasoning(
+ "gpt-oss-120b",
+ "openai/gpt-oss-120b",
+ "high",
+ );
+
+ expect(requestBody.reasoning_effort).toBe("high");
+ expect(requestBody.thinking).toBeUndefined();
+ });
+
+ test("forwards none as an effort on validating routes", async () => {
+ const requestBody = await togetherReasoning(
+ "gemma-4-31b-it",
+ "google/gemma-4-31b-it",
+ "none",
+ );
+
+ expect(requestBody.reasoning_effort).toBe("none");
+ expect(requestBody.thinking).toBeUndefined();
+ });
+
+ test("drops none on routes that do not declare it", async () => {
+ const requestBody = await togetherReasoning(
+ "gpt-oss-120b",
+ "openai/gpt-oss-120b",
+ "none",
+ );
+
+ expect(requestBody.reasoning_effort).toBeUndefined();
+ expect(requestBody.thinking).toBeUndefined();
+ });
+
+ test("maps none onto the thinking switch when the mapping needs it", async () => {
+ const requestBody = await togetherReasoning(
+ "deepseek-v4-pro",
+ "deepseek-ai/DeepSeek-V4-Pro",
+ "none",
+ );
+
+ expect(requestBody.thinking).toEqual({ type: "disabled" });
+ expect(requestBody.reasoning_effort).toBeUndefined();
+ });
+
+ test("forwards graded tiers verbatim on thinking-switch routes", async () => {
+ const requestBody = await togetherReasoning(
+ "kimi-k3",
+ "moonshotai/Kimi-K3",
+ "high",
+ );
+
+ expect(requestBody.reasoning_effort).toBe("high");
+ expect(requestBody.thinking).toBeUndefined();
+ });
+
+ test("sends no reasoning parameters when the caller omits effort", async () => {
+ const requestBody = await togetherReasoning(
+ "minimax-m3",
+ "MiniMaxAI/MiniMax-M3",
+ undefined,
+ );
+
+ expect(requestBody.reasoning_effort).toBeUndefined();
+ expect(requestBody.thinking).toBeUndefined();
+ });
});
describe("inference.net", () => {
diff --git a/packages/actions/src/prepare-request-body.ts b/packages/actions/src/prepare-request-body.ts
index 398dbec306..28b152af01 100644
--- a/packages/actions/src/prepare-request-body.ts
+++ b/packages/actions/src/prepare-request-body.ts
@@ -1167,10 +1167,10 @@ export async function prepareRequestBody(
// `none` reasoning effort is handled natively by a few providers:
// OpenAI/Azure forward it (their newer models accept it to turn reasoning
// off), and Google, Moonshot, Alibaba, MiniMax, Xiaomi, DeepSeek, Fireworks,
- // and Z.ai reason by default so they must explicitly disable thinking when
- // asked. Every other provider treats the absence of reasoning_effort as
- // "off" already, so normalize `none` away for them to avoid forwarding an
- // unsupported enum value.
+ // Together AI, and Z.ai reason by default so they must explicitly disable
+ // thinking when asked. Every other provider treats the absence of
+ // reasoning_effort as "off" already, so normalize `none` away for them to
+ // avoid forwarding an unsupported enum value.
const handlesNoneNatively =
usedProvider === "openai" ||
usedProvider === "azure" ||
@@ -1186,6 +1186,7 @@ export async function prepareRequestBody(
usedProvider === "xiaomi" ||
usedProvider === "deepseek" ||
usedProvider === "fireworks" ||
+ usedProvider === "together-ai" ||
usedProvider === "zai" ||
providerMappingForOptions?.apiFormat === "openai-chat-completions";
if (reasoning_effort === "none" && !handlesNoneNatively) {
@@ -3719,6 +3720,33 @@ export async function prepareRequestBody(
if (presence_penalty !== undefined) {
requestBody.presence_penalty = presence_penalty;
}
+
+ // Together AI is OpenAI-compatible on `reasoning_effort`, so graded
+ // tiers are forwarded verbatim (unsupported ones surface the provider's
+ // 4xx per the no-downgrade rule). Turning thinking *off* is not uniform:
+ // Together runs reasoning models on two serving stacks, each with its
+ // own switch (verified live against the API). The gpt-oss and Gemma
+ // deployments validate `reasoning_effort` — they name their accepted
+ // literals in the 400 — and take `none` there, while `thinking` is
+ // ignored. The DeepSeek V4 Pro, MiniMax M3 and Kimi deployments do the
+ // reverse: they accept any `reasoning_effort` string without complaint
+ // and keep thinking on, and only `thinking: { type: "disabled" }`
+ // (which they validate) actually turns it off. Mappings on the second
+ // stack set `requiresDisableThinkingParam`; either way only mappings
+ // that declare `none` in `reasoningEfforts` can disable at all.
+ if (supportsReasoning && reasoning_effort !== undefined) {
+ if (reasoning_effort !== "none") {
+ requestBody.reasoning_effort = reasoning_effort;
+ } else if (
+ providerMappingForOptions?.reasoningEfforts?.includes("none")
+ ) {
+ if (providerMappingForOptions.requiresDisableThinkingParam) {
+ requestBody.thinking = { type: "disabled" };
+ } else {
+ requestBody.reasoning_effort = "none";
+ }
+ }
+ }
break;
}
case "cerebras": {
diff --git a/packages/db/migrations/1785629776_faithful_gauntlet.sql b/packages/db/migrations/1785629776_faithful_gauntlet.sql
deleted file mode 100644
index 49a857bf15..0000000000
--- a/packages/db/migrations/1785629776_faithful_gauntlet.sql
+++ /dev/null
@@ -1,21 +0,0 @@
-CREATE TABLE "provider_key_hourly_stats" (
- "id" text PRIMARY KEY,
- "created_at" timestamp DEFAULT now() NOT NULL,
- "updated_at" timestamp DEFAULT now() NOT NULL,
- "provider_key_id" text NOT NULL,
- "project_id" text NOT NULL,
- "hour_timestamp" timestamp NOT NULL,
- "request_count" integer DEFAULT 0 NOT NULL,
- "error_count" integer DEFAULT 0 NOT NULL,
- "upstream_error_count" integer DEFAULT 0 NOT NULL,
- "cache_count" integer DEFAULT 0 NOT NULL,
- "input_tokens" numeric DEFAULT '0' NOT NULL,
- "output_tokens" numeric DEFAULT '0' NOT NULL,
- "total_tokens" numeric DEFAULT '0' NOT NULL,
- "cost" real DEFAULT 0 NOT NULL,
- CONSTRAINT "provider_key_hourly_stats_key_project_hour_unique" UNIQUE("provider_key_id","project_id","hour_timestamp")
-);
---> statement-breakpoint
-CREATE INDEX "provider_key_hourly_stats_key_id_hour_timestamp_idx" ON "provider_key_hourly_stats" ("provider_key_id","hour_timestamp");--> statement-breakpoint
-CREATE INDEX "provider_key_hourly_stats_project_id_hour_timestamp_idx" ON "provider_key_hourly_stats" ("project_id","hour_timestamp");--> statement-breakpoint
-CREATE INDEX "provider_key_hourly_stats_hour_timestamp_idx" ON "provider_key_hourly_stats" ("hour_timestamp");
\ No newline at end of file
diff --git a/packages/db/migrations/1785624146_lying_titanium_man.sql b/packages/db/migrations/1785687791_adorable_mole_man.sql
similarity index 72%
rename from packages/db/migrations/1785624146_lying_titanium_man.sql
rename to packages/db/migrations/1785687791_adorable_mole_man.sql
index ddf502fc70..c99d50ce86 100644
--- a/packages/db/migrations/1785624146_lying_titanium_man.sql
+++ b/packages/db/migrations/1785687791_adorable_mole_man.sql
@@ -1,3 +1,21 @@
+CREATE TABLE "provider_key_hourly_stats" (
+ "id" text PRIMARY KEY,
+ "created_at" timestamp DEFAULT now() NOT NULL,
+ "updated_at" timestamp DEFAULT now() NOT NULL,
+ "provider_key_id" text NOT NULL,
+ "project_id" text NOT NULL,
+ "hour_timestamp" timestamp NOT NULL,
+ "request_count" integer DEFAULT 0 NOT NULL,
+ "error_count" integer DEFAULT 0 NOT NULL,
+ "upstream_error_count" integer DEFAULT 0 NOT NULL,
+ "cache_count" integer DEFAULT 0 NOT NULL,
+ "input_tokens" numeric DEFAULT '0' NOT NULL,
+ "output_tokens" numeric DEFAULT '0' NOT NULL,
+ "total_tokens" numeric DEFAULT '0' NOT NULL,
+ "cost" real DEFAULT 0 NOT NULL,
+ CONSTRAINT "provider_key_hourly_stats_key_project_hour_unique" UNIQUE("provider_key_id","project_id","hour_timestamp")
+);
+--> statement-breakpoint
ALTER TABLE "log" ADD COLUMN "provider_key_id" text;--> statement-breakpoint
ALTER TABLE "provider_key" ADD COLUMN "token_ciphertext" text;--> statement-breakpoint
ALTER TABLE "provider_key" ADD COLUMN "token_masked" text;--> statement-breakpoint
@@ -29,6 +47,9 @@ ALTER TABLE "provider_key" ALTER COLUMN "organization_id" DROP NOT NULL;--> stat
CREATE INDEX IF NOT EXISTS "log_provider_key_id_created_at_idx" ON "log" ("provider_key_id","created_at") WHERE provider_key_id IS NOT NULL;--> statement-breakpoint
CREATE INDEX "provider_key_sort_order_idx" ON "provider_key" ("organization_id","provider","sort_order");--> statement-breakpoint
CREATE INDEX "provider_key_managed_provider_idx" ON "provider_key" ("managed","provider");--> statement-breakpoint
+CREATE INDEX "provider_key_hourly_stats_key_id_hour_timestamp_idx" ON "provider_key_hourly_stats" ("provider_key_id","hour_timestamp");--> statement-breakpoint
+CREATE INDEX "provider_key_hourly_stats_project_id_hour_timestamp_idx" ON "provider_key_hourly_stats" ("project_id","hour_timestamp");--> statement-breakpoint
+CREATE INDEX "provider_key_hourly_stats_hour_timestamp_idx" ON "provider_key_hourly_stats" ("hour_timestamp");--> statement-breakpoint
ALTER TABLE "video_job" ADD CONSTRAINT "video_job_managed_provider_key_id_provider_key_id_fkey" FOREIGN KEY ("managed_provider_key_id") REFERENCES "provider_key"("id") ON DELETE SET NULL;--> statement-breakpoint
ALTER TABLE "video_job" ADD CONSTRAINT "video_job_provider_key_id_provider_key_id_fkey" FOREIGN KEY ("provider_key_id") REFERENCES "provider_key"("id") ON DELETE SET NULL;--> statement-breakpoint
ALTER TABLE "provider_key" ADD CONSTRAINT "provider_key_token_xor" CHECK (("token" IS NULL) <> ("token_ciphertext" IS NULL));--> statement-breakpoint
diff --git a/packages/db/migrations/meta/1785624146_snapshot.json b/packages/db/migrations/meta/1785624146_snapshot.json
deleted file mode 100644
index 6a52cb1b05..0000000000
--- a/packages/db/migrations/meta/1785624146_snapshot.json
+++ /dev/null
@@ -1,30095 +0,0 @@
-{
- "version": "8",
- "dialect": "postgres",
- "id": "c8833b71-81ba-4388-8ec8-a59cd7df5ca6",
- "prevId": "db25cabd-8b9e-425a-8cea-32e86208d7fb",
- "ddl": [
- {
- "isRlsEnabled": false,
- "name": "account",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "api_key",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "api_key_hourly_model_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "api_key_hourly_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "api_key_iam_rule",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "audit_log",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_plan_cancellation_feedback",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_project",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_project_file",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_project_file_chunk",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_project_memory",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_share",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_support_conversation",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_support_message",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "chat_support_read_status",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "custom_model",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "dev_plan_cancellation_feedback",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "discount",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "end_customer",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "end_user_session",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "enterprise_contact_submission",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "follow_up_email",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "global_aggregation_state",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "global_model_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "global_source_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "guardrail_config",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "guardrail_rule",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "guardrail_violation",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "ignored_error_matcher",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "installation",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "lock",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "log",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "lounge_point_event",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "master_key",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "message",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_history",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_history_hourly",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_provider_mapping",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_provider_mapping_history",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_provider_mapping_history_hourly",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_rating",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "model_survey_response",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "organization",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "organization_action",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "organization_invite",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "passkey",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "payment_failure",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "payment_method",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "platform_webhook_delivery",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "playground_audio_history",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "playground_image_history",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "playground_realtime_history",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "playground_video_history",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "project",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "project_hourly_model_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "project_hourly_source_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "project_hourly_stats",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "provider",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "provider_key",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "provider_listing_request",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "rate_limit",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "realtime_session",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "referral",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "refund_feedback",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "routing_config",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "scim_group",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "scim_group_member",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "scim_token",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "session",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "skill",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "sso_default_project",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "sso_provider",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "sso_role_mapping",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "transaction",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "user",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "user_favorite_model",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "user_iam_rule",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "user_organization",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "user_project",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "verification",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "video_job",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "wallet",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "wallet_ledger",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "webhook_delivery_log",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "isRlsEnabled": false,
- "name": "webhook_endpoint",
- "entityType": "tables",
- "schema": "public"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "account_id",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_id",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "access_token",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "refresh_token",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id_token",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "access_token_expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "refresh_token_expires_at",
- "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": "password",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "account"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'user'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "key_type",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_wallet_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "usage",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_duration_value",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_duration_unit",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "current_period_usage",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "current_period_started_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "created_by",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rule_type",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rule_value",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "action",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "resource_type",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "resource_id",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "metadata",
- "entityType": "columns",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "title",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "web_search",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "pinned",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "comparison_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "parent_chat_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_plan_stripe_subscription_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "previous_chat_plan",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reason",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "comments",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "''",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "''",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "instructions",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "mime_type",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "size",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'processing'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "error",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "chunk_count",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "file_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chunk_index",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "embedding",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'manual'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "source",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "deleted_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "title",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "messages",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "client_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "email",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "ip_address",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_agent",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "message_count",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "escalated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "archived_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "resolved_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rating",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "conversation_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "role",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sequence",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reaction",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "conversation_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "admin_user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "last_read_message_count",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "read_at",
- "entityType": "columns",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_name",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "display_name",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "context_size",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "max_output",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "output_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cached_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_read_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write_input_price1h",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "web_search_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "image_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audio_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "streaming",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "vision",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "tools",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "json_output",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audio",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "supported_parameters",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_stripe_subscription_id",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "previous_dev_plan",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reason",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "comments",
- "entityType": "columns",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "discount_percent",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reason",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "discount"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "external_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "email",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'live'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "mode",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_customer_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "metadata",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "wallet_id",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "created_by",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "scope",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "usage",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_duration_value",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_duration_unit",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "current_period_usage",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "current_period_started_at",
- "entityType": "columns",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "email",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "country",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "size",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "deployment",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "message",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "honeypot",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "client_timestamp_ms",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "ip_address",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_agent",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'pending'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "spam_filter_status",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rejection_reason",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "archived_at",
- "entityType": "columns",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "email_type",
- "entityType": "columns",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sent_to",
- "entityType": "columns",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'singleton'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "global_aggregation_state"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_processed_hour",
- "entityType": "columns",
- "schema": "public",
- "table": "global_aggregation_state"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_safety_net_day",
- "entityType": "columns",
- "schema": "public",
- "table": "global_aggregation_state"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "global_aggregation_state"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "day_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "day_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "source",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "true",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "type": "unknown",
- "value": "'{\"prompt_injection\":{\"enabled\":true,\"action\":\"block\"},\"jailbreak\":{\"enabled\":true,\"action\":\"block\"},\"pii_detection\":{\"enabled\":true,\"action\":\"redact\"},\"secrets\":{\"enabled\":true,\"action\":\"block\"},\"file_types\":{\"enabled\":true,\"action\":\"block\"},\"document_leakage\":{\"enabled\":false,\"action\":\"warn\"}}'"
- },
- "generated": null,
- "identity": null,
- "name": "system_rules",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "10",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "max_file_size_mb",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 1,
- "default": {
- "value": "'{image/jpeg,image/png,image/gif,image/webp}'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "allowed_file_types",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'redact'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "pii_action",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "type",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "config",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "100",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "priority",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "true",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'block'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "action",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "log_id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rule_id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rule_name",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "category",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "action_taken",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "matched_pattern",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "matched_content",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content_hash",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "ignored_error_matcher"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "ignored_error_matcher"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "pattern",
- "entityType": "columns",
- "schema": "public",
- "table": "ignored_error_matcher"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "status_code",
- "entityType": "columns",
- "schema": "public",
- "table": "ignored_error_matcher"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "installation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "installation"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "installation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "uuid",
- "entityType": "columns",
- "schema": "public",
- "table": "installation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "type",
- "entityType": "columns",
- "schema": "public",
- "table": "installation"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "lock"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "lock"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "lock"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "key",
- "entityType": "columns",
- "schema": "public",
- "table": "lock"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_user_session_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_wallet_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "duration",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "requested_model",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "requested_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model_mapping",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "response_size",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning_content",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "tools",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "tool_choice",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "tool_results",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "finish_reason",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "unified_finish_reason",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "prompt_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "completion_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write5m_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write1h_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "messages",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "temperature",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "max_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "top_p",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "frequency_penalty",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "presence_penalty",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning_effort",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning_max_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "effort",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "response_format",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "has_error",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "error_details",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "internal_error_details",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "web_search_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content_filter_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "image_input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "image_output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audio_input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_download_count",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_video_downloaded_at",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "estimated_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "discount",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "pricing_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "requested_service_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_service_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "mode",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_mode",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_origin",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "source",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "session_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "custom_headers",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "routing_metadata",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "processed_at",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "raw_request",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "raw_response",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "upstream_request",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "upstream_response",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "trace_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_retention_cleaned_up",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "params",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_agent",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "plugins",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "plugin_results",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "retried",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "retried_by_log_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "internal_content_filter",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "gateway_content_filter_response",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "responses_api_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "responses_api_data",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "realtime_session_id",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "realtime_usage_key",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "billing_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audio_output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "realtime_usage",
- "entityType": "columns",
- "schema": "public",
- "table": "log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "kind",
- "entityType": "columns",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "points",
- "entityType": "columns",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token_hash",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "masked_token",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_used_at",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "created_by",
- "entityType": "columns",
- "schema": "public",
- "table": "master_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_id",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "role",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "images",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "audios",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "documents",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "tools",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sources",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "metadata",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sequence",
- "entityType": "columns",
- "schema": "public",
- "table": "message"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "released_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'(empty)'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "type": "unknown",
- "value": "'[]'"
- },
- "generated": null,
- "identity": null,
- "name": "aliases",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'(empty)'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "family",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "free",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "type": "unknown",
- "value": "'[\"text\"]'"
- },
- "generated": null,
- "identity": null,
- "name": "output",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_required",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'stable'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "stability",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "avg_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "avg_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stats_updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "minute_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_duration",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_reasoning_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_duration",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_reasoning_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "external_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "region",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "output_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cached_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cache_write_input_price1h",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "image_input_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "context_size",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "max_output",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streaming",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "vision",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_max_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reasoning_output",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "tools",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "json_output",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "json_output_schema",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "web_search",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "web_search_price",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'stable'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "stability",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "supported_parameters",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "test",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "deprecated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "deactivated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "avg_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "avg_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stats_updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_provider_mapping_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "minute_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_duration",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_reasoning_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_provider_mapping_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "bigint",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_duration",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "time_to_first_reasoning_token_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rating",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "comment",
- "entityType": "columns",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "year",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "quarter",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "value_score",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "quality_score",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "speed_score",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "would_recommend",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "primary_use_case",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "comment",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reward_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "billing_email",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "billing_company",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "billing_address",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "billing_tax_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "billing_notes",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_customer_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_subscription_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "auto_top_up_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'10'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "auto_top_up_threshold",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'10'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "auto_top_up_amount",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'free'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "plan",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "plan_expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "seats",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "subscription_cancelled",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "trial_start_date",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "trial_end_date",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "is_trial_active",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'none'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "retention_level",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_compliance_policy",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sso_auto_join_domain",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "referral_earnings",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "referral_bonus_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'50'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "referral_bonus_percent",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "payment_failure_count",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_payment_failure_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "payment_failure_started_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'default'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "kind",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'none'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_credits_used",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_credits_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_premium_credits_used",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_premium_week_start",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_reset_passes_lite",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_reset_passes_pro",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_reset_passes_max",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_included_reset_passes_used",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_credits_frozen",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_credits_limit_before_freeze",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_billing_cycle_start",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_tier_change_claimed_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_stripe_subscription_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_cancelled",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_pending_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'monthly'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_cycle",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'default'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_service_tier",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "dev_plan_billing_override",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "dev_plan_card_fingerprint",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'none'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "chat_plan",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "chat_plan_credits_used",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "chat_plan_credits_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_plan_billing_cycle_start",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_plan_stripe_subscription_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "chat_plan_cancelled",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_plan_expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'monthly'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "chat_plan_cycle",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "chat_plan_card_fingerprint",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_top_up_amount",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "end_user_margin_balance",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_connect_account_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "stripe_connect_onboarded",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "default_developer_max_api_keys",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "default_developer_usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "default_developer_period_usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "default_developer_period_usage_duration_value",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "default_developer_period_usage_duration_unit",
- "entityType": "columns",
- "schema": "public",
- "table": "organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "type",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "amount",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "email",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'developer'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "role",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_ids",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "invited_by",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'pending'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "accepted_at",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "accepted_by_user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "public_key",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "credential_id",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "counter",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "device_type",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "backed_up",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "transports",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "aaguid",
- "entityType": "columns",
- "schema": "public",
- "table": "passkey"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_email",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "amount",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'USD'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "currency",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "decline_code",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "error_code",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "failure_message",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_payment_intent_id",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "source",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_payment_method_id",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "type",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "is_default",
- "entityType": "columns",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "webhook_endpoint_id",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "event_id",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "event_type",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "payload",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'pending'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "attempts",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "next_attempt_at",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_attempt_at",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "response_status",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_error",
- "entityType": "columns",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "prompt",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "voice",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "models",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "prompt",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "input_images",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "models",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "title",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "voice",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "duration_seconds",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "transcript",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "usage",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "prompt",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "frame_inputs",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reference_images",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "models",
- "entityType": "columns",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "caching_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "60",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_duration_seconds",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "true",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "provider_cache_control_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'hybrid'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "mode",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'auto'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "default_routing_strategy",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "payments_sdk_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "end_user_enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "end_user_markup_percent",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "end_user_top_up_bonus_percent",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "allowed_origins",
- "entityType": "columns",
- "schema": "public",
- "table": "project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "source",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "hour_timestamp",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "non_streamed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "completed_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "length_limit_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "content_filter_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "tool_calls_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "canceled_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "unknown_finish_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_error_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "reasoning_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_tokens",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "request_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "discount_savings",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "image_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "audio_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "video_output_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cache_write_input_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_request_count",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "credits_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "api_keys_data_storage_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "streaming",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "cancellation",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "color",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "website",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "announcement",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "logs_count",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "client_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "gateway_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "upstream_errors_count",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "cached_count",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "avg_time_to_first_token",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "real",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "avg_time_to_first_reasoning_token",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stats_updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token_ciphertext",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token_masked",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token_hash",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "base_url",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "options",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "custom_models_only",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "compliance_attestation",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "managed",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "comment",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "config",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'default'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "variant",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "region",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "usage",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sort_order",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_name",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "email",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "url",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "terms_url",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "privacy_url",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "status_page_url",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "country",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "compliance_soc2_type2",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "compliance_iso27001",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "compliance_gdpr",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "data_retention_days",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "trains_on_data",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'unpaid'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "payment_status",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_checkout_session_id",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "paid_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "honeypot",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "client_timestamp_ms",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "ip_address",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_agent",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'pending'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "spam_filter_status",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rejection_reason",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "archived_at",
- "entityType": "columns",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "max_rpm",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "max_rpd",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'per_org'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "enforcement",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reason",
- "entityType": "columns",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "requested_model",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model_mapping",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "mode",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_mode",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "upstream_session_id",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'open'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "close_reason",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "response_count",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "total_cost",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "bytes_in",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "bytes_out",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "connected_at",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "closed_at",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_activity_at",
- "entityType": "columns",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "referral"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "referral"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "referral"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "referrer_organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "referral"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "referred_organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "referral"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "transaction_id",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "kind",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "reason",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "comments",
- "entityType": "columns",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "weights",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "thresholds",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "retry",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "timeouts",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "history",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sticky",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "session",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_priorities",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "external_id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "display_name",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "scim_group_id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "token_hash",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "masked_token",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "sso_provider_id",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "created_by",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_used_at",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "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": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "session"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "ip_address",
- "entityType": "columns",
- "schema": "public",
- "table": "session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_agent",
- "entityType": "columns",
- "schema": "public",
- "table": "session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "session"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "name",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "instructions",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "true",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "enabled",
- "entityType": "columns",
- "schema": "public",
- "table": "skill"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "issuer",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "domain",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "oidc_config",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "saml_config",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'generic'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "provider_type",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "enforced",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "domain_verified",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "group_name",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "role",
- "entityType": "columns",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "type",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "amount",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "credit_amount",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'USD'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "currency",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'completed'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_payment_intent_id",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_invoice_id",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_refund_id",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "related_transaction_id",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "refund_reason",
- "entityType": "columns",
- "schema": "public",
- "table": "transaction"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "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": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "email_verified",
- "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": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "onboarding_completed",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "newsletter_subscribed",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "username",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "profile_public",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "boolean",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "false",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "profile_hide_picture",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "bio",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "github_username",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "x_username",
- "entityType": "columns",
- "schema": "public",
- "table": "user"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_favorite_model"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_favorite_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_favorite_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_favorite_model"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rule_type",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "rule_value",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'owner'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "role",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "max_api_keys",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_limit",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_duration_value",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "period_usage_duration_unit",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "scim_external_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_project"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "user_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "user_organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "user_project"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "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",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "verification"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "verification"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "verification"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "log_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "api_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_user_session_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_wallet_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "mode",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_mode",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "model",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "requested_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "used_model",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_config_index",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "managed_provider_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "provider_key_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "upstream_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "prompt",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'queued'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "progress",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "error",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content_url",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "storage_provider",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "storage_bucket",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "storage_object_path",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "storage_uri",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "storage_expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "content_type",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "completed_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "expires_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_polled_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "next_poll_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "0",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "poll_attempt_count",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "callback_url",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "callback_secret",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'none'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "callback_status",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "callback_event_id",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "callback_event_type",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "callback_delivered_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "result_logged_at",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "routing_metadata",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "upstream_create_response",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "upstream_status_response",
- "entityType": "columns",
- "schema": "public",
- "table": "video_job"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'live'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "mode",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'0'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "balance",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'USD'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "currency",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "markup_percent_override",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "bonus_percent_override",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "spend_cap_per_session",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "wallet_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "end_customer_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "type",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "amount",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "balance_after",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "gross_paid",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "platform_fee",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "developer_margin",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "numeric",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "net_credited",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "stripe_payment_intent_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "gateway_log_id",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "description",
- "entityType": "columns",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "video_job_id",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "event_id",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "event_type",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "target_url",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "1",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "attempt",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'pending'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "last_tried_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "next_retry_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "delivered_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_headers",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "jsonb",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "request_body",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "integer",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "response_status",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "response_body",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "error",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "id",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "created_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "timestamp",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "now()",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "updated_at",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "organization_id",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "project_id",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "url",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "secret",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "json",
- "typeSchema": null,
- "notNull": false,
- "dimensions": 0,
- "default": null,
- "generated": null,
- "identity": null,
- "name": "enabled_events",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "type": "text",
- "typeSchema": null,
- "notNull": true,
- "dimensions": 0,
- "default": {
- "value": "'active'",
- "type": "unknown"
- },
- "generated": null,
- "identity": null,
- "name": "status",
- "entityType": "columns",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "account_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "account"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_by",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_created_by_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "key_type",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "expires_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_key_type_expires_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "end_customer_wallet_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"key_type\" = 'end_user_customer' AND \"status\" = 'active'",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_end_user_customer_wallet_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "api_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_hourly_model_stats_api_key_id_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_hourly_model_stats_project_id_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_hourly_model_stats_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "api_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_hourly_stats_api_key_id_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_hourly_stats_project_id_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_hourly_stats_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "api_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_iam_rule_api_key_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "rule_type",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "api_key_iam_rule_rule_type_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "api_key_id",
- "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": "api_key_iam_rule_api_key_id_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "audit_log_organization_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "audit_log_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "action",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "audit_log_action_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "resource_type",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "audit_log_resource_type_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "chat_plan_stripe_subscription_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_plan_cancellation_feedback_org_sub_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_plan_cancellation_feedback_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_project_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_project_file_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "file_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_project_file_chunk_file_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_project_file_chunk_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_project_memory_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "chat_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"deleted_at\" IS NULL AND \"organization_id\" IS NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_share_active_chat_id_public_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "chat_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"deleted_at\" IS NULL AND \"organization_id\" IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_share_active_chat_id_org_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "chat_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_share_chat_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_share_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "deleted_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_share_deleted_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_support_conversation_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "client_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_support_conversation_client_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "conversation_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_support_message_conversation_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "conversation_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "admin_user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "chat_support_read_status_conv_admin_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "provider_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_name",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "status <> 'deleted'",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "custom_model_provider_key_id_model_name_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "provider_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "custom_model_provider_key_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "custom_model_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "dev_plan_stripe_subscription_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "dev_plan_cancellation_feedback_org_sub_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "dev_plan_cancellation_feedback_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "discount_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "discount"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "discount_provider_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "discount"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "discount_model_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "discount"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "external_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "mode",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "end_customer_project_id_external_id_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "end_customer_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "end_customer_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "end_user_session_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "wallet_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "end_user_session_wallet_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "expires_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "end_user_session_status_expires_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "enterprise_contact_submission_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "email",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "enterprise_contact_submission_email_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "spam_filter_status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "enterprise_contact_submission_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "follow_up_email_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "day_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "global_model_stats_day_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "used_model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "day_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "global_model_stats_used_model_day_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "used_provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "used_model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "day_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "global_model_stats_p_m_time_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "day_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "global_source_stats_day_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "source",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "day_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "global_source_stats_source_day_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "guardrail_config_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "guardrail_rule_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "priority",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "guardrail_rule_priority_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "guardrail_violation_org_created_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "rule_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "guardrail_violation_rule_created_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "coalesce(\"pattern\", '')",
- "isExpression": true,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "coalesce(\"status_code\", -1)",
- "isExpression": true,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "ignored_error_matcher_pattern_status_code_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "ignored_error_matcher"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_project_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "request_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_request_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "used_model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "used_provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_created_at_used_model_used_provider_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "data_retention_cleaned_up = false",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_data_retention_pending_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "used_model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_project_id_used_model_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "session_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "session_id IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_project_id_session_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "api_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_api_key_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "end_customer_wallet_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "end_customer_wallet_id IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_end_customer_wallet_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "provider_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "provider_key_id IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_provider_key_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "end_user_session_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "end_user_session_id IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_end_user_session_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "processed_at IS NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_processed_at_null_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "realtime_session_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "realtime_usage_key",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "realtime_usage_key IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_realtime_session_usage_key_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "realtime_session_id IS NOT NULL AND processed_at IS NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "log_realtime_unsettled_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "lounge_point_event_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "lounge_point_event_user_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "master_key_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "master_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "token_hash",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "master_key_token_hash_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "master_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_by",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "master_key_created_by_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "master_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "chat_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "message_chat_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "message"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_history_minute_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_history_model_id_minute_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_history_hourly_ts_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_history_hourly_model_ts_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_status_model_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_history_minute_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "provider_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_history_minute_timestamp_provider_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_history_minute_timestamp_model_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_history_model_id_minute_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "provider_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_history_id_ts_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "minute_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "provider_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "logs_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "errors_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "cached_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "total_time_to_first_token",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "time_to_first_token_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "total_output_tokens",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "total_duration",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_provider_mapping_history_provider_stats_v2_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "mpm_history_hourly_ts_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "provider_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "mpm_history_hourly_ts_provider_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "mpm_history_hourly_ts_model_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "mpm_history_hourly_model_ts_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "provider_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "logs_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "errors_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "cached_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "total_time_to_first_token",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "time_to_first_token_count",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "total_output_tokens",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "total_duration",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "mpm_history_hourly_provider_stats_v2_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_rating_user_id_model_id_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_rating_model_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "year",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "quarter",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_survey_response_user_model_period_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "year",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "quarter",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"reward_tier\" IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_survey_response_org_period_reward_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "year",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_survey_response_year_model_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "model_survey_response_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "dev_plan_card_fingerprint",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "organization_dev_plan_card_fingerprint_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "organization"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "chat_plan_card_fingerprint",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "organization_chat_plan_card_fingerprint_uidx",
- "entityType": "indexes",
- "schema": "public",
- "table": "organization"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "sso_auto_join_domain",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "organization_sso_auto_join_domain_uidx",
- "entityType": "indexes",
- "schema": "public",
- "table": "organization"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "organization_action_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "email",
- "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": "organization_invite_email_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "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": "organization_invite_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "passkey_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "passkey"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "payment_failure_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "payment_failure_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "decline_code",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "payment_failure_decline_code_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "payment_method_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "next_attempt_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": "status = 'pending'",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "platform_webhook_delivery_status_next_attempt_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "webhook_endpoint_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "platform_webhook_delivery_endpoint_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "playground_audio_history_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "playground_image_history_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "playground_realtime_history_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "playground_video_history_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_model_stats_project_id_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_model_stats_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "used_model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_model_stats_used_model_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "used_provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "used_model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_model_stats_p_m_time_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_source_stats_project_id_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_source_stats_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "source",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_source_stats_source_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "hour_timestamp",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "project_hourly_stats_hour_timestamp_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "name",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "status <> 'deleted'",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_key_organization_id_name_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_key_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "sort_order",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_key_sort_order_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "managed",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_key_managed_provider_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_listing_request_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "email",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_listing_request_email_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "spam_filter_status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "provider_listing_request_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "provider_listing_request"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "coalesce(\"organization_id\", '__global__')",
- "isExpression": true,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "coalesce(\"provider\", '__all_providers__')",
- "isExpression": true,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "coalesce(\"model\", '__all_models__')",
- "isExpression": true,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "rate_limit_org_provider_model_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "rate_limit_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "provider",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "rate_limit_provider_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "model",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "rate_limit_model_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "realtime_session_organization_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "realtime_session_project_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "api_key_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "realtime_session_api_key_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "referrer_organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "referral_referrer_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "referral"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "referred_organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "referral_referred_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "referral"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "transaction_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "refund_feedback_transaction_id_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "refund_feedback_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "refund_feedback_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "routing_config_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "scim_group_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "display_name",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "scim_group_org_display_name_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "scim_group_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "scim_group_member_group_user_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "scim_group_member_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "scim_token_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "token_hash",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "scim_token_token_hash_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "session_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "session"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "skill_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "skill"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "sso_default_project_org_project_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "sso_default_project_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "sso_provider_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "domain",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "sso_provider_domain_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "group_name",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "sso_role_mapping_org_group_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "transaction_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "transaction"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "stripe_refund_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"stripe_refund_id\" IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "transaction_stripe_refund_id_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "transaction"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "stripe_invoice_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"stripe_invoice_id\" IS NOT NULL",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "transaction_stripe_invoice_id_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "transaction"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "model_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_favorite_model_user_id_model_id_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_favorite_model"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_iam_rule_user_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_organization_id",
- "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": "user_iam_rule_user_organization_id_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_organization_user_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_organization_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "scim_external_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_organization_scim_external_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_project_membership_project_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "user_organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_project_user_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "user_project_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "user_project"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "created_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "video_job_project_id_created_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "next_poll_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "video_job_status_next_poll_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "upstream_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "video_job_upstream_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "log_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "video_job_log_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "callback_status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "video_job_callback_status_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "end_user_session_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "video_job_end_user_session_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "wallet_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_ledger_wallet_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_ledger_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "stripe_payment_intent_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_ledger_stripe_payment_intent_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "stripe_payment_intent_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"type\" = 'topup'",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_ledger_topup_payment_intent_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "stripe_payment_intent_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": true,
- "where": "\"type\" = 'reversal'",
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "wallet_ledger_reversal_payment_intent_unique",
- "entityType": "indexes",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "video_job_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "webhook_delivery_log_video_job_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "status",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- },
- {
- "value": "next_retry_at",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "webhook_delivery_log_status_next_retry_at_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "project_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "webhook_endpoint_project_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "nameExplicit": true,
- "columns": [
- {
- "value": "organization_id",
- "isExpression": false,
- "asc": true,
- "nullsFirst": false,
- "opclass": null
- }
- ],
- "isUnique": false,
- "where": null,
- "with": "",
- "method": "btree",
- "concurrently": false,
- "name": "webhook_endpoint_organization_id_idx",
- "entityType": "indexes",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "account_user_id_user_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "account"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_customer_wallet_id"
- ],
- "schemaTo": "public",
- "tableTo": "wallet",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "api_key_end_customer_wallet_id_wallet_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "api_key_project_id_project_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": false,
- "columns": [
- "created_by"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "api_key_created_by_user_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "api_key"
- },
- {
- "nameExplicit": false,
- "columns": [
- "api_key_id"
- ],
- "schemaTo": "public",
- "tableTo": "api_key",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "api_key_iam_rule_api_key_id_api_key_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "api_key_iam_rule"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "audit_log_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "audit_log_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "audit_log"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_user_id_user_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "chat"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "chat_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat"
- },
- {
- "nameExplicit": false,
- "columns": [
- "parent_chat_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_parent_chat_id_chat_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "chat_project_id_chat_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_plan_cancellation_feedback_lggQrHrJo0rO_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_plan_cancellation_feedback_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_project_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "chat_project_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_project_file_project_id_chat_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_project_file"
- },
- {
- "nameExplicit": false,
- "columns": [
- "file_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_project_file",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_project_file_chunk_file_id_chat_project_file_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_project_file_chunk_project_id_chat_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_project_file_chunk"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_project_memory_project_id_chat_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_project_memory"
- },
- {
- "nameExplicit": false,
- "columns": [
- "chat_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_share_chat_id_chat_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_share_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_share_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_share"
- },
- {
- "nameExplicit": false,
- "columns": [
- "conversation_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_support_conversation",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_support_message_Wd0B6G0H0z05_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "nameExplicit": false,
- "columns": [
- "conversation_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat_support_conversation",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_support_read_status_oDVimXRR0BL9_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "nameExplicit": false,
- "columns": [
- "admin_user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "chat_support_read_status_admin_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "chat_support_read_status"
- },
- {
- "nameExplicit": false,
- "columns": [
- "provider_key_id"
- ],
- "schemaTo": "public",
- "tableTo": "provider_key",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "custom_model_provider_key_id_provider_key_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "custom_model_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "custom_model"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "dev_plan_cancellation_feedback_FlmxK90wrnKv_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "dev_plan_cancellation_feedback_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "discount_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "discount"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_customer_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_customer_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_customer"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_user_session_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_user_session_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_customer_id"
- ],
- "schemaTo": "public",
- "tableTo": "end_customer",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_user_session_end_customer_id_end_customer_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "wallet_id"
- ],
- "schemaTo": "public",
- "tableTo": "wallet",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_user_session_wallet_id_wallet_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "created_by"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "end_user_session_created_by_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "end_user_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "follow_up_email_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "guardrail_config_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "guardrail_config"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "guardrail_rule_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "guardrail_rule"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "guardrail_violation_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "guardrail_violation"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "lounge_point_event_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "lounge_point_event"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "master_key_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "master_key"
- },
- {
- "nameExplicit": false,
- "columns": [
- "created_by"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "master_key_created_by_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "master_key"
- },
- {
- "nameExplicit": false,
- "columns": [
- "chat_id"
- ],
- "schemaTo": "public",
- "tableTo": "chat",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "message_chat_id_chat_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "message"
- },
- {
- "nameExplicit": false,
- "columns": [
- "model_id"
- ],
- "schemaTo": "public",
- "tableTo": "model",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "model_provider_mapping_model_id_model_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "nameExplicit": false,
- "columns": [
- "provider_id"
- ],
- "schemaTo": "public",
- "tableTo": "provider",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "model_provider_mapping_provider_id_provider_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "model_rating_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "model_survey_response_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "model_survey_response_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "organization_action_organization_id_organization_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "organization_action"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "organization_invite_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "nameExplicit": false,
- "columns": [
- "invited_by"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "organization_invite_invited_by_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "nameExplicit": false,
- "columns": [
- "accepted_by_user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "organization_invite_accepted_by_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "organization_invite"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "passkey_user_id_user_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "passkey"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "payment_failure_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "payment_method_organization_id_organization_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "payment_method"
- },
- {
- "nameExplicit": false,
- "columns": [
- "webhook_endpoint_id"
- ],
- "schemaTo": "public",
- "tableTo": "webhook_endpoint",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "platform_webhook_delivery_6o69dFuU5JAY_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "platform_webhook_delivery"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "playground_audio_history_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "playground_audio_history_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_audio_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "playground_image_history_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "playground_image_history_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_image_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "playground_realtime_history_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "playground_realtime_history_6gba5Xye7cwi_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_realtime_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "playground_video_history_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "playground_video_history_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "playground_video_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "project_organization_id_organization_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "provider_key_organization_id_organization_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "rate_limit_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "rate_limit"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "realtime_session_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "realtime_session_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "api_key_id"
- ],
- "schemaTo": "public",
- "tableTo": "api_key",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "realtime_session_api_key_id_api_key_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "realtime_session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "referrer_organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "referral_referrer_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "referral"
- },
- {
- "nameExplicit": false,
- "columns": [
- "referred_organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "referral_referred_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "referral"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "refund_feedback_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "refund_feedback_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "transaction_id"
- ],
- "schemaTo": "public",
- "tableTo": "transaction",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "refund_feedback_transaction_id_transaction_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "refund_feedback"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "routing_config_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "routing_config"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "scim_group_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "scim_group"
- },
- {
- "nameExplicit": false,
- "columns": [
- "scim_group_id"
- ],
- "schemaTo": "public",
- "tableTo": "scim_group",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "scim_group_member_scim_group_id_scim_group_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "scim_group_member_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "scim_group_member"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "scim_token_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "nameExplicit": false,
- "columns": [
- "created_by"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "scim_token_created_by_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "scim_token"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "session_user_id_user_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "session"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "skill_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "skill"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "sso_default_project_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "sso_default_project_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "sso_default_project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "sso_provider_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "sso_provider_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "sso_provider"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "sso_role_mapping_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "sso_role_mapping"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "transaction_organization_id_organization_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "transaction"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "user_favorite_model_user_id_user_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "user_favorite_model"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "user_organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "user_iam_rule_user_organization_id_user_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "user_iam_rule"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_id"
- ],
- "schemaTo": "public",
- "tableTo": "user",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "user_organization_user_id_user_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "user_organization_organization_id_organization_id_fk",
- "entityType": "fks",
- "schema": "public",
- "table": "user_organization"
- },
- {
- "nameExplicit": false,
- "columns": [
- "user_organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "user_organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "user_project_user_organization_id_user_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "user_project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "user_project_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "user_project"
- },
- {
- "nameExplicit": false,
- "columns": [
- "log_id"
- ],
- "schemaTo": "public",
- "tableTo": "log",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "video_job_log_id_log_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "video_job_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "video_job_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "api_key_id"
- ],
- "schemaTo": "public",
- "tableTo": "api_key",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "video_job_api_key_id_api_key_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_user_session_id"
- ],
- "schemaTo": "public",
- "tableTo": "end_user_session",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "video_job_end_user_session_id_end_user_session_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_customer_wallet_id"
- ],
- "schemaTo": "public",
- "tableTo": "wallet",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "video_job_end_customer_wallet_id_wallet_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "managed_provider_key_id"
- ],
- "schemaTo": "public",
- "tableTo": "provider_key",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "video_job_managed_provider_key_id_provider_key_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "provider_key_id"
- ],
- "schemaTo": "public",
- "tableTo": "provider_key",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "SET NULL",
- "name": "video_job_provider_key_id_provider_key_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "video_job"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_customer_id"
- ],
- "schemaTo": "public",
- "tableTo": "end_customer",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "wallet_end_customer_id_end_customer_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "wallet"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "wallet_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "wallet"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "wallet_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "wallet"
- },
- {
- "nameExplicit": false,
- "columns": [
- "wallet_id"
- ],
- "schemaTo": "public",
- "tableTo": "wallet",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "wallet_ledger_wallet_id_wallet_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_customer_id"
- ],
- "schemaTo": "public",
- "tableTo": "end_customer",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "wallet_ledger_end_customer_id_end_customer_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "wallet_ledger_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "wallet_ledger"
- },
- {
- "nameExplicit": false,
- "columns": [
- "video_job_id"
- ],
- "schemaTo": "public",
- "tableTo": "video_job",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "webhook_delivery_log_video_job_id_video_job_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "webhook_delivery_log"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "schemaTo": "public",
- "tableTo": "organization",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "webhook_endpoint_organization_id_organization_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "schemaTo": "public",
- "tableTo": "project",
- "columnsTo": [
- "id"
- ],
- "onUpdate": "NO ACTION",
- "onDelete": "CASCADE",
- "name": "webhook_endpoint_project_id_project_id_fkey",
- "entityType": "fks",
- "schema": "public",
- "table": "webhook_endpoint"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "account_pkey",
- "schema": "public",
- "table": "account",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "api_key_pkey",
- "schema": "public",
- "table": "api_key",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "api_key_hourly_model_stats_pkey",
- "schema": "public",
- "table": "api_key_hourly_model_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "api_key_hourly_stats_pkey",
- "schema": "public",
- "table": "api_key_hourly_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "api_key_iam_rule_pkey",
- "schema": "public",
- "table": "api_key_iam_rule",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "audit_log_pkey",
- "schema": "public",
- "table": "audit_log",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_pkey",
- "schema": "public",
- "table": "chat",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_plan_cancellation_feedback_pkey",
- "schema": "public",
- "table": "chat_plan_cancellation_feedback",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_project_pkey",
- "schema": "public",
- "table": "chat_project",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_project_file_pkey",
- "schema": "public",
- "table": "chat_project_file",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_project_file_chunk_pkey",
- "schema": "public",
- "table": "chat_project_file_chunk",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_project_memory_pkey",
- "schema": "public",
- "table": "chat_project_memory",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_share_pkey",
- "schema": "public",
- "table": "chat_share",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_support_conversation_pkey",
- "schema": "public",
- "table": "chat_support_conversation",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_support_message_pkey",
- "schema": "public",
- "table": "chat_support_message",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "chat_support_read_status_pkey",
- "schema": "public",
- "table": "chat_support_read_status",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "custom_model_pkey",
- "schema": "public",
- "table": "custom_model",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "dev_plan_cancellation_feedback_pkey",
- "schema": "public",
- "table": "dev_plan_cancellation_feedback",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "discount_pkey",
- "schema": "public",
- "table": "discount",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "end_customer_pkey",
- "schema": "public",
- "table": "end_customer",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "end_user_session_pkey",
- "schema": "public",
- "table": "end_user_session",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "enterprise_contact_submission_pkey",
- "schema": "public",
- "table": "enterprise_contact_submission",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "follow_up_email_pkey",
- "schema": "public",
- "table": "follow_up_email",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "global_aggregation_state_pkey",
- "schema": "public",
- "table": "global_aggregation_state",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "global_model_stats_pkey",
- "schema": "public",
- "table": "global_model_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "global_source_stats_pkey",
- "schema": "public",
- "table": "global_source_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "guardrail_config_pkey",
- "schema": "public",
- "table": "guardrail_config",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "guardrail_rule_pkey",
- "schema": "public",
- "table": "guardrail_rule",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "guardrail_violation_pkey",
- "schema": "public",
- "table": "guardrail_violation",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "ignored_error_matcher_pkey",
- "schema": "public",
- "table": "ignored_error_matcher",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "installation_pkey",
- "schema": "public",
- "table": "installation",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "lock_pkey",
- "schema": "public",
- "table": "lock",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "log_pkey",
- "schema": "public",
- "table": "log",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "lounge_point_event_pkey",
- "schema": "public",
- "table": "lounge_point_event",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "master_key_pkey",
- "schema": "public",
- "table": "master_key",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "message_pkey",
- "schema": "public",
- "table": "message",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_pkey",
- "schema": "public",
- "table": "model",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_history_pkey",
- "schema": "public",
- "table": "model_history",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_history_hourly_pkey",
- "schema": "public",
- "table": "model_history_hourly",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_provider_mapping_pkey",
- "schema": "public",
- "table": "model_provider_mapping",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_provider_mapping_history_pkey",
- "schema": "public",
- "table": "model_provider_mapping_history",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_provider_mapping_history_hourly_pkey",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_rating_pkey",
- "schema": "public",
- "table": "model_rating",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "model_survey_response_pkey",
- "schema": "public",
- "table": "model_survey_response",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "organization_pkey",
- "schema": "public",
- "table": "organization",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "organization_action_pkey",
- "schema": "public",
- "table": "organization_action",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "organization_invite_pkey",
- "schema": "public",
- "table": "organization_invite",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "passkey_pkey",
- "schema": "public",
- "table": "passkey",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "payment_failure_pkey",
- "schema": "public",
- "table": "payment_failure",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "payment_method_pkey",
- "schema": "public",
- "table": "payment_method",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "platform_webhook_delivery_pkey",
- "schema": "public",
- "table": "platform_webhook_delivery",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "playground_audio_history_pkey",
- "schema": "public",
- "table": "playground_audio_history",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "playground_image_history_pkey",
- "schema": "public",
- "table": "playground_image_history",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "playground_realtime_history_pkey",
- "schema": "public",
- "table": "playground_realtime_history",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "playground_video_history_pkey",
- "schema": "public",
- "table": "playground_video_history",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "project_pkey",
- "schema": "public",
- "table": "project",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "project_hourly_model_stats_pkey",
- "schema": "public",
- "table": "project_hourly_model_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "project_hourly_source_stats_pkey",
- "schema": "public",
- "table": "project_hourly_source_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "project_hourly_stats_pkey",
- "schema": "public",
- "table": "project_hourly_stats",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "provider_pkey",
- "schema": "public",
- "table": "provider",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "provider_key_pkey",
- "schema": "public",
- "table": "provider_key",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "provider_listing_request_pkey",
- "schema": "public",
- "table": "provider_listing_request",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "rate_limit_pkey",
- "schema": "public",
- "table": "rate_limit",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "realtime_session_pkey",
- "schema": "public",
- "table": "realtime_session",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "referral_pkey",
- "schema": "public",
- "table": "referral",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "refund_feedback_pkey",
- "schema": "public",
- "table": "refund_feedback",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "routing_config_pkey",
- "schema": "public",
- "table": "routing_config",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "scim_group_pkey",
- "schema": "public",
- "table": "scim_group",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "scim_group_member_pkey",
- "schema": "public",
- "table": "scim_group_member",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "scim_token_pkey",
- "schema": "public",
- "table": "scim_token",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "session_pkey",
- "schema": "public",
- "table": "session",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "skill_pkey",
- "schema": "public",
- "table": "skill",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "sso_default_project_pkey",
- "schema": "public",
- "table": "sso_default_project",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "sso_provider_pkey",
- "schema": "public",
- "table": "sso_provider",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "sso_role_mapping_pkey",
- "schema": "public",
- "table": "sso_role_mapping",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "transaction_pkey",
- "schema": "public",
- "table": "transaction",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "user_pkey",
- "schema": "public",
- "table": "user",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "user_favorite_model_pkey",
- "schema": "public",
- "table": "user_favorite_model",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "user_iam_rule_pkey",
- "schema": "public",
- "table": "user_iam_rule",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "user_organization_pkey",
- "schema": "public",
- "table": "user_organization",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "user_project_pkey",
- "schema": "public",
- "table": "user_project",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "verification_pkey",
- "schema": "public",
- "table": "verification",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "video_job_pkey",
- "schema": "public",
- "table": "video_job",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "wallet_pkey",
- "schema": "public",
- "table": "wallet",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "wallet_ledger_pkey",
- "schema": "public",
- "table": "wallet_ledger",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "webhook_delivery_log_pkey",
- "schema": "public",
- "table": "webhook_delivery_log",
- "entityType": "pks"
- },
- {
- "columns": [
- "id"
- ],
- "nameExplicit": false,
- "name": "webhook_endpoint_pkey",
- "schema": "public",
- "table": "webhook_endpoint",
- "entityType": "pks"
- },
- {
- "nameExplicit": false,
- "columns": [
- "api_key_id",
- "hour_timestamp",
- "used_model",
- "used_provider"
- ],
- "nullsNotDistinct": false,
- "name": "api_key_hourly_model_stats_api_key_id_hour_timestamp_used_model_used_provider_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "api_key_hourly_model_stats"
- },
- {
- "nameExplicit": false,
- "columns": [
- "api_key_id",
- "hour_timestamp"
- ],
- "nullsNotDistinct": false,
- "name": "api_key_hourly_stats_api_key_id_hour_timestamp_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "api_key_hourly_stats"
- },
- {
- "nameExplicit": true,
- "columns": [
- "organization_id",
- "provider",
- "model"
- ],
- "nullsNotDistinct": false,
- "name": "discount_org_provider_model_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "discount"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id",
- "email_type"
- ],
- "nullsNotDistinct": false,
- "name": "follow_up_email_organization_id_email_type_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "follow_up_email"
- },
- {
- "nameExplicit": false,
- "columns": [
- "day_timestamp",
- "used_model",
- "used_provider"
- ],
- "nullsNotDistinct": false,
- "name": "global_model_stats_day_timestamp_used_model_used_provider_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "global_model_stats"
- },
- {
- "nameExplicit": false,
- "columns": [
- "day_timestamp",
- "source"
- ],
- "nullsNotDistinct": false,
- "name": "global_source_stats_day_timestamp_source_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "global_source_stats"
- },
- {
- "nameExplicit": false,
- "columns": [
- "model_id",
- "minute_timestamp"
- ],
- "nullsNotDistinct": false,
- "name": "model_history_model_id_minute_timestamp_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "model_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "model_id",
- "hour_timestamp"
- ],
- "nullsNotDistinct": false,
- "name": "model_history_hourly_model_id_hour_timestamp_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "model_history_hourly"
- },
- {
- "nameExplicit": false,
- "columns": [
- "model_id",
- "provider_id",
- "region"
- ],
- "nullsNotDistinct": false,
- "name": "model_provider_mapping_model_id_provider_id_region_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "model_provider_mapping"
- },
- {
- "nameExplicit": false,
- "columns": [
- "model_provider_mapping_id",
- "minute_timestamp"
- ],
- "nullsNotDistinct": false,
- "name": "model_provider_mapping_history_model_provider_mapping_id_minute_timestamp_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "model_provider_mapping_history"
- },
- {
- "nameExplicit": false,
- "columns": [
- "model_provider_mapping_id",
- "hour_timestamp"
- ],
- "nullsNotDistinct": false,
- "name": "model_provider_mapping_history_hourly_model_provider_mapping_id_hour_timestamp_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "model_provider_mapping_history_hourly"
- },
- {
- "nameExplicit": true,
- "columns": [
- "stripe_payment_intent_id"
- ],
- "nullsNotDistinct": false,
- "name": "payment_failure_stripe_pi_idx",
- "entityType": "uniques",
- "schema": "public",
- "table": "payment_failure"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id",
- "hour_timestamp",
- "used_model",
- "used_provider"
- ],
- "nullsNotDistinct": false,
- "name": "project_hourly_model_stats_project_id_hour_timestamp_used_model_used_provider_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "project_hourly_model_stats"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id",
- "hour_timestamp",
- "source"
- ],
- "nullsNotDistinct": false,
- "name": "project_hourly_source_stats_project_id_hour_timestamp_source_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "project_hourly_source_stats"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id",
- "hour_timestamp"
- ],
- "nullsNotDistinct": false,
- "name": "project_hourly_stats_project_id_hour_timestamp_unique",
- "entityType": "uniques",
- "schema": "public",
- "table": "project_hourly_stats"
- },
- {
- "nameExplicit": false,
- "columns": [
- "token"
- ],
- "nullsNotDistinct": false,
- "name": "api_key_token_unique",
- "schema": "public",
- "table": "api_key",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "stripe_customer_id"
- ],
- "nullsNotDistinct": false,
- "name": "end_customer_stripe_customer_id_key",
- "schema": "public",
- "table": "end_customer",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "token"
- ],
- "nullsNotDistinct": false,
- "name": "end_user_session_token_key",
- "schema": "public",
- "table": "end_user_session",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "organization_id"
- ],
- "nullsNotDistinct": false,
- "name": "guardrail_config_organization_id_key",
- "schema": "public",
- "table": "guardrail_config",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "uuid"
- ],
- "nullsNotDistinct": false,
- "name": "installation_uuid_unique",
- "schema": "public",
- "table": "installation",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "key"
- ],
- "nullsNotDistinct": false,
- "name": "lock_key_unique",
- "schema": "public",
- "table": "lock",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "token_hash"
- ],
- "nullsNotDistinct": false,
- "name": "master_key_token_hash_key",
- "schema": "public",
- "table": "master_key",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "stripe_customer_id"
- ],
- "nullsNotDistinct": false,
- "name": "organization_stripe_customer_id_key",
- "schema": "public",
- "table": "organization",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "stripe_subscription_id"
- ],
- "nullsNotDistinct": false,
- "name": "organization_stripe_subscription_id_key",
- "schema": "public",
- "table": "organization",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "dev_plan_stripe_subscription_id"
- ],
- "nullsNotDistinct": false,
- "name": "organization_dev_plan_stripe_subscription_id_key",
- "schema": "public",
- "table": "organization",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "chat_plan_stripe_subscription_id"
- ],
- "nullsNotDistinct": false,
- "name": "organization_chat_plan_stripe_subscription_id_key",
- "schema": "public",
- "table": "organization",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "stripe_connect_account_id"
- ],
- "nullsNotDistinct": false,
- "name": "organization_stripe_connect_account_id_key",
- "schema": "public",
- "table": "organization",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "referred_organization_id"
- ],
- "nullsNotDistinct": false,
- "name": "referral_referred_organization_id_key",
- "schema": "public",
- "table": "referral",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "project_id"
- ],
- "nullsNotDistinct": false,
- "name": "routing_config_project_id_key",
- "schema": "public",
- "table": "routing_config",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "token_hash"
- ],
- "nullsNotDistinct": false,
- "name": "scim_token_token_hash_key",
- "schema": "public",
- "table": "scim_token",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "token"
- ],
- "nullsNotDistinct": false,
- "name": "session_token_unique",
- "schema": "public",
- "table": "session",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "provider_id"
- ],
- "nullsNotDistinct": false,
- "name": "sso_provider_provider_id_key",
- "schema": "public",
- "table": "sso_provider",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "email"
- ],
- "nullsNotDistinct": false,
- "name": "user_email_unique",
- "schema": "public",
- "table": "user",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "username"
- ],
- "nullsNotDistinct": false,
- "name": "user_username_key",
- "schema": "public",
- "table": "user",
- "entityType": "uniques"
- },
- {
- "nameExplicit": false,
- "columns": [
- "end_customer_id"
- ],
- "nullsNotDistinct": false,
- "name": "wallet_end_customer_id_key",
- "schema": "public",
- "table": "wallet",
- "entityType": "uniques"
- },
- {
- "value": "\"rating\" IS NULL OR (\"rating\" >= 0 AND \"rating\" <= 5)",
- "name": "chat_support_conversation_rating_check",
- "entityType": "checks",
- "schema": "public",
- "table": "chat_support_conversation"
- },
- {
- "value": "\"reaction\" IS NULL OR \"reaction\" IN ('like', 'dislike')",
- "name": "chat_support_message_reaction_check",
- "entityType": "checks",
- "schema": "public",
- "table": "chat_support_message"
- },
- {
- "value": "\"deployment\" IS NULL OR \"deployment\" IN ('self_host', 'cloud', 'not_sure')",
- "name": "enterprise_contact_submission_deployment_check",
- "entityType": "checks",
- "schema": "public",
- "table": "enterprise_contact_submission"
- },
- {
- "value": "\"pattern\" IS NOT NULL OR \"status_code\" IS NOT NULL",
- "name": "ignored_error_matcher_target_check",
- "entityType": "checks",
- "schema": "public",
- "table": "ignored_error_matcher"
- },
- {
- "value": "\"rating\" >= 1 AND \"rating\" <= 5",
- "name": "model_rating_rating_check",
- "entityType": "checks",
- "schema": "public",
- "table": "model_rating"
- },
- {
- "value": "\"quarter\" >= 1 AND \"quarter\" <= 4",
- "name": "model_survey_response_quarter_check",
- "entityType": "checks",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "value": "\"value_score\" >= 1 AND \"value_score\" <= 5",
- "name": "model_survey_response_value_score_check",
- "entityType": "checks",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "value": "\"quality_score\" >= 1 AND \"quality_score\" <= 5",
- "name": "model_survey_response_quality_score_check",
- "entityType": "checks",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "value": "\"speed_score\" >= 1 AND \"speed_score\" <= 5",
- "name": "model_survey_response_speed_score_check",
- "entityType": "checks",
- "schema": "public",
- "table": "model_survey_response"
- },
- {
- "value": "(\"token\" IS NULL) <> (\"token_ciphertext\" IS NULL)",
- "name": "provider_key_token_xor",
- "entityType": "checks",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "value": "(\"managed\" = true AND \"organization_id\" IS NULL) OR (\"managed\" = false AND \"organization_id\" IS NOT NULL)",
- "name": "provider_key_managed_org_scope",
- "entityType": "checks",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "value": "\"compliance_attestation\" IS NULL OR \"provider\" = 'custom'",
- "name": "provider_key_attestation_custom_only",
- "entityType": "checks",
- "schema": "public",
- "table": "provider_key"
- },
- {
- "value": "\"payment_status\" IN ('unpaid', 'paid', 'refunded')",
- "name": "provider_listing_request_payment_status_check",
- "entityType": "checks",
- "schema": "public",
- "table": "provider_listing_request"
- }
- ],
- "renames": []
-}
\ No newline at end of file
diff --git a/packages/db/migrations/meta/1785629776_snapshot.json b/packages/db/migrations/meta/1785687791_snapshot.json
similarity index 99%
rename from packages/db/migrations/meta/1785629776_snapshot.json
rename to packages/db/migrations/meta/1785687791_snapshot.json
index 9b196c1b04..ff3c77b016 100644
--- a/packages/db/migrations/meta/1785629776_snapshot.json
+++ b/packages/db/migrations/meta/1785687791_snapshot.json
@@ -1,8 +1,8 @@
{
"version": "8",
"dialect": "postgres",
- "id": "d46063d6-2981-40d4-8174-b49b4c8f43fe",
- "prevId": "c8833b71-81ba-4388-8ec8-a59cd7df5ca6",
+ "id": "fef799d5-0268-471d-84de-337aebdad4aa",
+ "prevId": "db25cabd-8b9e-425a-8cea-32e86208d7fb",
"ddl": [
{
"isRlsEnabled": false,
diff --git a/packages/db/migrations/meta/_journal.json b/packages/db/migrations/meta/_journal.json
index 05540d56c2..5ec882251f 100644
--- a/packages/db/migrations/meta/_journal.json
+++ b/packages/db/migrations/meta/_journal.json
@@ -1524,15 +1524,8 @@
{
"idx": 217,
"version": "8",
- "when": 1785624146431,
- "tag": "1785624146_lying_titanium_man",
- "breakpoints": true
- },
- {
- "idx": 218,
- "version": "8",
- "when": 1785629776776,
- "tag": "1785629776_faithful_gauntlet",
+ "when": 1785687791848,
+ "tag": "1785687791_adorable_mole_man",
"breakpoints": true
}
]
diff --git a/packages/models/src/models.ts b/packages/models/src/models.ts
index 0a2c0389ec..d551c7934c 100644
--- a/packages/models/src/models.ts
+++ b/packages/models/src/models.ts
@@ -371,6 +371,17 @@ export interface ProviderModelMapping {
* parameter) when the caller requests reasoning.
*/
requiresEnableThinking?: boolean;
+ /**
+ * Whether this provider mapping turns thinking off through a separate binary
+ * `thinking: { type: "disabled" }` parameter instead of
+ * `reasoning_effort: "none"`. Together AI serves reasoning models on two
+ * stacks: its gpt-oss/Gemma deployments validate `reasoning_effort` and take
+ * `none` there (sending `thinking` has no effect), while its
+ * DeepSeek/MiniMax/Kimi deployments ignore `reasoning_effort: "none"` and
+ * only honour the `thinking` switch. Only meaningful on mappings that
+ * declare `none` in `reasoningEfforts`.
+ */
+ requiresDisableThinkingParam?: boolean;
/**
* Whether this model supports the OpenAI responses API (defaults to true if reasoning is true)
*/
diff --git a/packages/models/src/models/deepseek.ts b/packages/models/src/models/deepseek.ts
index d7940d1ddd..0537b382a6 100644
--- a/packages/models/src/models/deepseek.ts
+++ b/packages/models/src/models/deepseek.ts
@@ -316,7 +316,13 @@ export const deepseekModels = [
maxOutput: 163840,
streaming: true,
reasoning: true,
- reasoningEfforts: ["high", "max"],
+ // Together's deployment accepts any reasoning_effort string without
+ // validating it, and only the top tiers measurably change behaviour:
+ // xhigh and max roughly double the reasoning tokens, while
+ // low/medium/high land on the provider default. `none` is honoured
+ // through the `thinking` switch, not through reasoning_effort.
+ reasoningEfforts: ["none", "xhigh", "max"],
+ requiresDisableThinkingParam: true,
reasoningOutput: "omit",
vision: false,
tools: true,
diff --git a/packages/models/src/models/google.ts b/packages/models/src/models/google.ts
index 55693019cc..74a4a35264 100644
--- a/packages/models/src/models/google.ts
+++ b/packages/models/src/models/google.ts
@@ -2307,6 +2307,10 @@ export const googleModels = [
maxOutput: 32768,
streaming: true,
reasoning: true,
+ // Together validates reasoning_effort on this route and names the
+ // accepted literals in its 400 ("Input should be 'none', 'low',
+ // 'medium' or 'high'"); `none` zeroes out the reasoning output.
+ reasoningEfforts: ["none", "low", "medium", "high"],
vision: false,
tools: true,
jsonOutput: true,
diff --git a/packages/models/src/models/minimax.ts b/packages/models/src/models/minimax.ts
index e929d0c256..3cc1c8a0c4 100644
--- a/packages/models/src/models/minimax.ts
+++ b/packages/models/src/models/minimax.ts
@@ -48,6 +48,12 @@ export const minimaxModels = [
quantization: "fp4",
streaming: true,
reasoning: true,
+ // Together's deployment accepts any reasoning_effort string without
+ // validating it, and no tier measurably changes the reasoning length,
+ // so `none` — honoured through the `thinking` switch rather than
+ // reasoning_effort — is the only effort this mapping really applies.
+ reasoningEfforts: ["none"],
+ requiresDisableThinkingParam: true,
vision: false,
tools: false,
jsonOutput: true,
diff --git a/packages/models/src/models/moonshot.ts b/packages/models/src/models/moonshot.ts
index 0d14d87be3..0ef4faa3af 100644
--- a/packages/models/src/models/moonshot.ts
+++ b/packages/models/src/models/moonshot.ts
@@ -465,6 +465,12 @@ export const moonshotModels = [
maxOutput: 32768,
streaming: true,
reasoning: true,
+ // Together's deployment accepts any reasoning_effort string without
+ // validating it, and no tier measurably changes the reasoning length,
+ // so `none` — honoured through the `thinking` switch rather than
+ // reasoning_effort — is the only effort this mapping really applies.
+ reasoningEfforts: ["none"],
+ requiresDisableThinkingParam: true,
vision: true,
tools: false,
jsonOutput: false,
@@ -694,6 +700,12 @@ export const moonshotModels = [
quantization: "fp4",
streaming: true,
reasoning: true,
+ // Together's deployment accepts any reasoning_effort string without
+ // validating it, and no tier measurably changes the reasoning length,
+ // so `none` — honoured through the `thinking` switch rather than
+ // reasoning_effort — is the only effort this mapping really applies.
+ reasoningEfforts: ["none"],
+ requiresDisableThinkingParam: true,
vision: true,
tools: true,
jsonOutput: true,
diff --git a/packages/models/src/models/openai.ts b/packages/models/src/models/openai.ts
index fd305de5ac..8c7a9948bd 100644
--- a/packages/models/src/models/openai.ts
+++ b/packages/models/src/models/openai.ts
@@ -776,6 +776,9 @@ export const openaiModels = [
vision: false,
tools: true,
reasoning: true,
+ // Together validates reasoning_effort on the gpt-oss route and 400s
+ // ("Input validation error") on anything outside low/medium/high.
+ reasoningEfforts: ["low", "medium", "high"],
jsonOutput: false,
},
{
@@ -878,6 +881,9 @@ export const openaiModels = [
vision: false,
tools: true,
reasoning: true,
+ // Together validates reasoning_effort on the gpt-oss route and 400s
+ // ("Input validation error") on anything outside low/medium/high.
+ reasoningEfforts: ["low", "medium", "high"],
jsonOutput: false,
},
],
diff --git a/packages/shared/src/bulk-block.ts b/packages/shared/src/bulk-block.ts
new file mode 100644
index 0000000000..5ebf9caecb
--- /dev/null
+++ b/packages/shared/src/bulk-block.ts
@@ -0,0 +1,13 @@
+// Limits for the admin "bulk block organizations" action. Shared so the admin
+// dashboard gates on the same numbers the API enforces — the API is the only
+// thing that actually protects the data, and a UI copy that drifts from it
+// would show or hide the action for filters the server disagrees about.
+
+// A one or two character filter matches far too much to be a deliberate
+// selection, so require something specific enough to identify a set of orgs.
+export const MIN_BULK_BLOCK_SEARCH_LENGTH = 3;
+
+// Hard ceiling on a single bulk block. A filter matching more than this is
+// treated as too broad to be an intentional selection and is rejected outright
+// rather than partially applied.
+export const MAX_BULK_BLOCK_ORGANIZATIONS = 500;
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts
index 9d05e96a08..83cdaf3532 100644
--- a/packages/shared/src/index.ts
+++ b/packages/shared/src/index.ts
@@ -143,6 +143,11 @@ export { MARKETING_STATS, RUNWARE_PROMO } from "./marketing.js";
export { isContentFilterErrorText } from "./content-filter.js";
+export {
+ MAX_BULK_BLOCK_ORGANIZATIONS,
+ MIN_BULK_BLOCK_SEARCH_LENGTH,
+} from "./bulk-block.js";
+
export {
CUSTOM_PROVIDER_NAME_MESSAGE,
CUSTOM_PROVIDER_NAME_REGEX,